public interface Dns
Implementations of this interface must be safe for concurrent use.
java.util.List<java.net.InetAddress> lookup(java.lang.String hostname)
throws java.net.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.java.net.UnknownHostExceptionCopyright © 2018. All Rights Reserved.