Skip to content

Commit

Permalink
update: bug of Lookup A/TXT record with default net Resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Esonhugh committed Jul 2, 2024
1 parent 21a7a41 commit 36879e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func SRVRecord(svcDomain string) (string, []*net.SRV, error) {
}

func ARecord(domain string) (ips []net.IP, err error) {
ips, err = net.LookupIP(domain)
// ips, err = NetResolver.LookupIP()
ips, err = NetResolver.LookupIP(context.Background(), "ip", domain)
return
}

Expand Down Expand Up @@ -85,7 +86,7 @@ func TestPodVerified() bool {
}

func TXTRecord(domain string) (txts []string, err error) {
txts, err = net.LookupTXT(domain)
txts, err = NetResolver.LookupTXT(context.Background(), domain)
return
}

Expand Down

0 comments on commit 36879e3

Please sign in to comment.