public static boolean isDomain(String url) {
        String host = getDomain(url);
        if (StringUtils.isEmpty(host)) {
            return false;
        } else {
            return !isIp(host);
        }
    }
@Test
    public void testIsDomain() {
        assertTrue(isDomain("bolt://alipay.com:80?a=b"));
        assertTrue(isDomain("alipay.com:80?a=b"));
        assertTrue(isDomain("bolt://alipay.com:80"));
        assertTrue(isDomain("alipay.com:80"));
        assertTrue(isDomain("bolt://alipay?a=b"));
        assertTrue(isDomain("alipay"));
        assertTrue(isDomain("sofagw-pool"));

        assertFalse(isDomain("bolt://1.1.1.1:80?a=b"));
        assertFalse(isDomain("1.1.1.1:80?a=b"));
        assertFalse(isDomain("bolt://1.1.1.1:80"));
        assertFalse(isDomain("1.1.1.1:80"));
        assertFalse(isDomain("1.1.1.1"));

        //todo now we do not support ipv6
        //        assertFalse(isDomain("bolt://FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF#12200?a=b"));
        //        assertFalse(isDomain("FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF#12200?a=b"));
        //        assertFalse(isDomain("bolt://FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF#12200"));
        //        assertFalse(isDomain("bolt://FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF?a=b"));
        //        assertFalse(isDomain("FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"));
    }