- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for BootstrapDns (0.08 seconds)
-
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt
* * Returns hardcoded results for the known host. */ internal class BootstrapDns( private val dnsHostname: String, private val dnsServers: List<InetAddress>, ) : Dns { @Throws(UnknownHostException::class) override fun lookup(hostname: String): List<InetAddress> { if (this.dnsHostname != hostname) { throw UnknownHostException( "BootstrapDns called for $hostname instead of $dnsHostname", ) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.3K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
const val MAX_RESPONSE_SIZE = 64 * 1024 private fun buildBootstrapClient(builder: Builder): Dns { val hosts = builder.bootstrapDnsHosts return if (hosts != null) { BootstrapDns(builder.url!!.host, hosts) } else { builder.systemDns } } internal fun isPrivateHost(host: String): Boolean = PublicSuffixDatabase.get().getEffectiveTldPlusOne(host) == null }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 8.6K bytes - Click Count (0)