package dns import ( "fmt" "testing" ) func TestDefaultDns(t *testing.T) { p, e := QueryDns("google.com", "A", 3, "https://dns.b612.me/dns-query") if e != nil { t.Error(e) } for _, v := range p { fmt.Printf("%+v\n", v) } }