public class SystemDefaultDnsResolver extends java.lang.Object implements DnsResolver
| 限定符和类型 | 字段和说明 |
|---|---|
static SystemDefaultDnsResolver |
INSTANCE |
| 构造器和说明 |
|---|
SystemDefaultDnsResolver() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 DnsResolverhost - The host name to be resolved by this resolver.java.net.UnknownHostExceptionInetAddress