public class SystemDefaultDnsResolver extends java.lang.Object implements DnsResolver
Modifier and Type | Field and Description |
---|---|
static SystemDefaultDnsResolver |
INSTANCE |
Constructor and Description |
---|
SystemDefaultDnsResolver() |
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.
|
public static final SystemDefaultDnsResolver INSTANCE
public java.net.InetAddress[] resolve(java.lang.String host) throws java.net.UnknownHostException
DnsResolver
resolve
in interface DnsResolver
host
- The host name to be resolved by this resolver.java.net.UnknownHostException
InetAddress