Change 0ms DNS to Large variant

To prevent users from getting rate limited while still receiving the benefits of OISD Big and other security filters, using the "Large" variant is highly recommended for mission-critical applications or big networks.
master
nya~ 2 years ago
parent 18169c2355
commit 3498a54bdf

@ -85,9 +85,13 @@ class DoHManager(
).build()
DoHProvider.ZERO_MS -> DnsOverHttps.Builder().client(bootstrapClient)
.url("https://0ms.dev/dns-query".toHttpUrl())
.resolvePublicAddresses(true)
.build()
.url("https://2ca4h4crra.cloudflare-gateway.com/dns-query".toHttpUrl())
.resolvePrivateAddresses(true)
.bootstrapDnsHosts(
listOfNotNull(
tryGetByIp("2a06:98c1:54::384a"),
),
).build()
}
private fun tryGetByIp(ip: String): InetAddress? = try {

Loading…
Cancel
Save