Skip to content

Commit

Permalink
no reporting DNS server here, misleading
Browse files Browse the repository at this point in the history
  • Loading branch information
rbarazzutti committed Dec 19, 2021
1 parent 0e57868 commit 1cabc9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func (resolver *resolver) actualResolve(addr string) (*net.IPAddr, error) {

ip, err := r.LookupIP(context.Background(), resolver.config.IPProtocol, addr)
if err != nil {
if dnsError, ok := err.(*net.DNSError); ok {
dnsError.Server = ""
}
return nil, err
}

Expand Down

0 comments on commit 1cabc9b

Please sign in to comment.