Fix #542 - Add Bootstrap DNS resolver settings

This commit is contained in:
Aleksey Dmitrevskiy
2019-02-27 11:15:18 +03:00
parent 71ab95f12f
commit dc05556c5a
5 changed files with 68 additions and 3 deletions

View File

@@ -61,6 +61,7 @@ type dnsConfig struct {
}
var defaultDNS = []string{"tls://1.1.1.1", "tls://1.0.0.1"}
var defaultBootstrap = []string{"1.1.1.1"}
type tlsConfigSettings struct {
Enabled bool `yaml:"enabled" json:"enabled"` // Enabled is the encryption (DOT/DOH/HTTPS) status
@@ -114,7 +115,7 @@ var config = configuration{
QueryLogEnabled: true,
Ratelimit: 20,
RefuseAny: true,
BootstrapDNS: "8.8.8.8:53",
BootstrapDNS: defaultBootstrap,
},
UpstreamDNS: defaultDNS,
},