public interface DnsResolver
| Modifier and Type | Method and Description |
|---|---|
InetAddress[] |
resolve(String host)
Returns the IP address for the specified host name.
|
InetAddress[] resolve(String host) throws UnknownHostException
host - the hostname, must not be empty or null.adressesUnknownHostException - if the given host is not recognized or the associated IP address cannot be used to build an
InetAddress instanceCopyright © 2016. All rights reserved.