star/dns/dns_test.go

16 lines
202 B
Go
Raw Normal View History

2024-03-10 18:06:34 +08:00
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)
}
2024-03-11 22:50:09 +08:00
fmt.Println(p)
2024-03-10 18:06:34 +08:00
}