public static String resolveHost2Address(String fqdn) {
        String ip = null;
        try {
            InetAddress address = InetAddress.getByName(fqdn);
            ip = address.getHostAddress();
        } catch (UnknownHostException e) {
            logger.error("UnknownHostException " + fqdn, e);
        }
        return ip;
    }
@Test
    public void testResolveHost2ip() {
        String ip = NetUtils.resolveHost2Address("www.google.ca");
        System.out.println("ip = " + ip);
    }