okhttp / okhttp3 / OkHttpClient / Builder / dns

dns

fun dns(dns: Dns): OkHttpClient.Builder

Sets the DNS service used to lookup IP addresses for hostnames.

If unset, the system-wide default DNS will be used.