github.com/nxtrace/NTrace-core@v1.3.1-0.20240513132635-39169291e8c9/util/common.go (about) 1 package util 2 3 import "net" 4 5 func Dnspod() *net.Resolver { 6 return newDoTResolver("dot.pub", "dot.pub:853") 7 } 8 9 func Aliyun() *net.Resolver { 10 return newDoTResolver("dns.alidns.com", "dns.alidns.com:853") 11 } 12 13 func DNSSB() *net.Resolver { 14 return newDoTResolver("45.11.45.11", "dot.sb:853") 15 } 16 17 func Cloudflare() *net.Resolver { 18 return newDoTResolver("one.one.one.one", "one.one.one.one:853") 19 } 20 21 func Google() *net.Resolver { 22 return newDoTResolver("dns.google", "dns.google:853") 23 }