mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 11:22:49 +03:00
* DNS: use Quad9 as default server
This commit is contained in:
parent
31ffae7717
commit
d6d0d53761
@ -30,10 +30,9 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var defaultDNS = []string{
|
var defaultDNS = []string{
|
||||||
"https://1.1.1.1/dns-query",
|
"https://dns.quad9.net/dns-query",
|
||||||
"https://1.0.0.1/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.
|
// 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" {
|
if runtime.GOARCH == "mips" || runtime.GOARCH == "mipsle" {
|
||||||
// Use plain DNS on MIPS, encryption is too slow
|
// Use plain DNS on MIPS, encryption is too slow
|
||||||
defaultDNS = []string{"1.1.1.1", "1.0.0.1"}
|
defaultDNS = defaultBootstrap
|
||||||
}
|
}
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user