public class SystemDefaultDnsResolver extends Object implements DnsResolver
Modifier and Type | Field and Description |
---|---|
static SystemDefaultDnsResolver |
INSTANCE |
Constructor and Description |
---|
SystemDefaultDnsResolver() |
Modifier and Type | Method and Description |
---|---|
InetAddress[] |
resolve(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 SystemDefaultDnsResolver()
public InetAddress[] resolve(String host) throws UnknownHostException
DnsResolver
resolve
in interface DnsResolver
host
- The host name to be resolved by this resolver.UnknownHostException
InetAddress
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses