public static boolean isDomain(String str) {
        if (StringUtils.isBlank(str)) {
            return false;
        }
        if (Objects.equals(str, LOCAL_HOST)) {
            return true;
        }
        return DOMAIN_PATTERN.matcher(str).matches();
    }
@Test
    void testIsDomain() {
        assertTrue(InternetAddressUtil.isDomain("localhost"));
        assertTrue(InternetAddressUtil.isDomain("github.com"));
        assertTrue(InternetAddressUtil.isDomain("prefix.infix.suffix"));
        assertTrue(InternetAddressUtil.isDomain("p-hub.com"));
        
        assertFalse(InternetAddressUtil.isDomain(""));
        assertFalse(InternetAddressUtil.isDomain(null));
    }