接口 Dns
public interface Dns
A domain name service that resolves IP addresses for host names. Most applications will use the
system DNS service, which is the default. Some applications may provide
their own implementation to use a different DNS server, to prefer IPv6 addresses, to prefer IPv4
addresses, or to force a specific known IP address.
Implementations of this interface must be safe for concurrent use.
-
字段概要
字段修饰符和类型字段说明static final DnsA DNS that usesInetAddress.getAllByName(java.lang.String)to ask the underlying operating system to lookup IP addresses. -
方法概要
修饰符和类型方法说明Returns the IP addresses ofhostname, in the order they will be attempted by OkHttp.
-
字段详细资料
-
SYSTEM
A DNS that usesInetAddress.getAllByName(java.lang.String)to ask the underlying operating system to lookup IP addresses. Most customDnsimplementations should delegate to this instance.
-
-
方法详细资料
-
lookup
Returns the IP addresses ofhostname, in the order they will be attempted by OkHttp. If a connection to an address fails, OkHttp will retry the connection with the next address until either a connection is made, the set of IP addresses is exhausted, or a limit is exceeded.
-