public interface Dns
Implementations of this interface must be safe for concurrent use.
| 限定符和类型 | 字段和说明 |
|---|---|
static Dns |
SYSTEM
A DNS that uses
InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
lookup IP addresses. |
static final Dns SYSTEM
InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
lookup IP addresses. Most custom Dns implementations should delegate to this instance.List<InetAddress> lookup(String hostname) throws UnknownHostException
hostname, 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.Copyright © 2024. All rights reserved.