DnsResolverpublic class SystemDefaultDnsResolver extends java.lang.Object implements DnsResolver
| Modifier and Type | Field | Description |
|---|---|---|
static SystemDefaultDnsResolver |
INSTANCE |
| Constructor | Description |
|---|---|
SystemDefaultDnsResolver() |
| Modifier and Type | Method | 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
DnsResolverresolve in interface DnsResolverhost - The host name to be resolved by this resolver.java.net.UnknownHostExceptionInetAddress