* DNS: use Quad9 as default server

This commit is contained in:
Simon Zolin 2019-10-31 12:43:33 +03:00
parent 31ffae7717
commit d6d0d53761
1 changed files with 3 additions and 4 deletions

View File

@ -30,10 +30,9 @@ const (
)
var defaultDNS = []string{
"https://1.1.1.1/dns-query",
"https://1.0.0.1/dns-query",
"https://dns.quad9.net/dns-query",
}
var defaultBootstrap = []string{"1.1.1.1", "1.0.0.1"}
var defaultBootstrap = []string{"9.9.9.9", "149.112.112.112"}
// Server is the main way to start a DNS server.
//
@ -68,7 +67,7 @@ func NewServer(dnsFilter *dnsfilter.Dnsfilter, stats stats.Stats, queryLog query
if runtime.GOARCH == "mips" || runtime.GOARCH == "mipsle" {
// Use plain DNS on MIPS, encryption is too slow
defaultDNS = []string{"1.1.1.1", "1.0.0.1"}
defaultDNS = defaultBootstrap
}
return s
}