Java Host Check checkHost(String hostname)

Here you can find the source of checkHost(String hostname)

Description

check Host

License

Open Source License

Declaration

public static void checkHost(String hostname) throws UnknownHostException 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Main {
    public static void checkHost(String hostname) throws UnknownHostException {
        InetAddress.getByName(hostname);
    }//from   w  w w .  j a  v  a 2  s. c  om
}

Related

  1. checkHost(String host)
  2. checkHostIsAvailable(String hostName)
  3. checkHostName(String hostName)
  4. isHostReachable(String host, int timeout)
  5. isInternalHostname(String host)