From 1c88a77f68438b399463c31c39a3ab397ad4c00c Mon Sep 17 00:00:00 2001 From: James Tucker Date: Wed, 20 Sep 2023 16:26:41 -0700 Subject: [PATCH] net/dns/publicdns: update Quad9 addresses and references One Quad9 IPv6 address was incorrect, and an additional group needed adding. Additionally I checked Cloudflare and included source reference URLs for both. Updates #cleanup Signed-off-by: James Tucker --- net/dns/publicdns/publicdns.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net/dns/publicdns/publicdns.go b/net/dns/publicdns/publicdns.go index 84bfbc3bf..40c1b0f8f 100644 --- a/net/dns/publicdns/publicdns.go +++ b/net/dns/publicdns/publicdns.go @@ -137,6 +137,7 @@ func addDoH(ipStr, base string) { // populate is called once to initialize the knownDoH and dohIPsOfBase maps. func populate() { // Cloudflare + // https://developers.cloudflare.com/1.1.1.1/ip-addresses/ addDoH("1.1.1.1", "https://cloudflare-dns.com/dns-query") addDoH("1.0.0.1", "https://cloudflare-dns.com/dns-query") addDoH("2606:4700:4700::1111", "https://cloudflare-dns.com/dns-query") @@ -170,10 +171,17 @@ func populate() { // addDoH("208.67.220.123", "https://doh.familyshield.opendns.com/dns-query") // Quad9 + // https://www.quad9.net/service/service-addresses-and-features addDoH("9.9.9.9", "https://dns.quad9.net/dns-query") addDoH("149.112.112.112", "https://dns.quad9.net/dns-query") addDoH("2620:fe::fe", "https://dns.quad9.net/dns-query") - addDoH("2620:fe::fe:9", "https://dns.quad9.net/dns-query") + addDoH("2620:fe::9", "https://dns.quad9.net/dns-query") + + // Quad9 +ECS +DNSSEC + addDoH("9.9.9.11", "https://dns11.quad9.net/dns-query") + addDoH("149.112.112.11", "https://dns11.quad9.net/dns-query") + addDoH("2620:fe::11", "https://dns11.quad9.net/dns-query") + addDoH("2620:fe::fe:11", "https://dns11.quad9.net/dns-query") // Quad9 -DNSSEC addDoH("9.9.9.10", "https://dns10.quad9.net/dns-query")