Skip to content

//okhttp/okhttp3/Dns/lookup

lookup

[jvm]\ abstract fun lookup(hostname: String): List<InetAddress>

Returns the IP addresses of 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.