okhttp / okhttp3 / EventListener / dnsStart

dnsStart

open fun dnsStart(call: Call, domainName: String): Unit

Invoked just prior to a DNS lookup. See Dns.lookup.

This can be invoked more than 1 time for a single Call. For example, if the response to the Call.request is a redirect to a different host.

If the Call is able to reuse an existing pooled connection, this method will not be invoked. See ConnectionPool.