16 lines
202 B
Go
16 lines
202 B
Go
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)
|
|
}
|
|
fmt.Println(p)
|
|
|
|
}
|