Improve: replace bootstrap dns (#2080)
This commit is contained in:
parent
2c9a4d276a
commit
e010940b61
1 changed files with 12 additions and 0 deletions
12
component/resolver/defaults.go
Normal file
12
component/resolver/defaults.go
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||||
|
|
||||||
|
package resolver
|
||||||
|
|
||||||
|
import _ "unsafe"
|
||||||
|
|
||||||
|
//go:linkname defaultNS net.defaultNS
|
||||||
|
var defaultNS []string
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
defaultNS = []string{"114.114.114.114:53", "8.8.8.8:53"}
|
||||||
|
}
|
Loading…
Reference in a new issue