public static boolean isIp6Address(String ipAddress) {

        try {
            final InetAddress address = InetAddresses.forString(ipAddress);
            if (address instanceof Inet6Address) {
                return true;
            }
        } catch (IllegalArgumentException e) {
            // Absorb exception.
        }

        return false;
    }
@Test
    public void testValidIp6Address() {

        assertTrue(DnsClient.isIp6Address("2607:f8b0:4000:812::200e"));
        assertTrue(DnsClient.isIp6Address("2606:2800:220:1:248:1893:25c8:1946"));
        assertFalse(DnsClient.isIp6Address("t2606:2800:220:1:248:1893:25c8:1946"));
        assertFalse(DnsClient.isIp6Address("google.com"));
    }