Use Google's DNS IPs instead of domain
If /etc/resolv.conf does not have any entries, then its unlikely that the domain name representation of google's DNS would get resolved too. Hence using IP address directly makes sense.
This commit is contained in:
parent
8022e6ab93
commit
c4a93bcff5
@ -23,8 +23,8 @@ var (
|
||||
const defaultResolvConf = "/etc/resolv.conf"
|
||||
|
||||
var defaultNameservers = []string{
|
||||
"google-public-dns-a.google.com:53",
|
||||
"google-public-dns-b.google.com:53",
|
||||
"8.8.8.8:53",
|
||||
"8.8.4.4:53",
|
||||
}
|
||||
|
||||
var RecursiveNameservers = getNameservers(defaultResolvConf, defaultNameservers)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user