Files
NTrace-core/util/dns_test.go
2023-02-20 03:49:10 +00:00

14 lines
196 B
Go

package util
import (
"context"
"fmt"
"testing"
)
func TestDNS(t *testing.T) {
resolver := DNSSB()
ips, _ := resolver.LookupHost(context.Background(), "www.google.com")
fmt.Println(ips)
}