Skip to content

[tagets.resolver] Use explicit DNS client when DNS server is overridden - #853

Merged
manugarg merged 3 commits into
masterfrom
dns_resolve_explicit_client
Sep 23, 2024
Merged

manugarg merged 3 commits into
masterfrom
dns_resolve_explicit_client

Conversation

@manugarg

@manugarg manugarg commented Sep 23, 2024 •

Copy link
Copy Markdown
Contributor
  • Go's LookupIP implementation is complex (to make it efficient) and not worth it when DNS server is overridden.
  • LookupIP may be buggy or less deterministic when not using system's local resolvers. I am not sure if that's the case, but I think it's okay to skip it to use a simple DNS client to do DNS queries when not using local resolvers.

Go's implementation is here:
https://github.com/golang/go/blob/ab5c22e7ed6bda79f07410c0041e020e52dc9b35/src/net/dnsclient_unix.go#L609
https://github.com/golang/go/blob/ab5c22e7ed6bda79f07410c0041e020e52dc9b35/src/net/dnsclient_unix.go#L297

@manugarg
manugarg merged commit 99755b4 into master Sep 23, 2024
@manugarg
manugarg deleted the dns_resolve_explicit_client branch September 23, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant