public interface DnsResolver
| Modifier and Type | Method and Description |
|---|---|
java.net.InetAddress[] |
resolve(java.lang.String host)
Returns the IP address for the specified host name, or null if the given
host is not recognized or the associated IP address cannot be used to
build an InetAddress instance.
|
java.lang.String |
resolveCanonicalHostname(java.lang.String host)
Gets the fully qualified domain name for given host name.
|
java.net.InetAddress[] resolve(java.lang.String host)
throws java.net.UnknownHostException
host - The host name to be resolved by this resolver.java.net.UnknownHostExceptionInetAddressjava.lang.String resolveCanonicalHostname(java.lang.String host)
throws java.net.UnknownHostException
java.net.UnknownHostException