Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presence of a faulty nameserver in system config causes client side lookups to take forever #2150

Open
bergentruckung opened this issue Feb 20, 2024 · 1 comment

Comments

@bergentruckung
Copy link

Describe the bug
If there's a faulty nameserver (non-existent/typo or dummy) in /etc/resolv.conf along with others that are working, the lookup gets stalled (in my case, up to 16s). Would it be possible for the client side lookup to rely on the nameservers in order (from top to bottom), or have an alternate strategy of returning the first successful lookup?

To Reproduce

  1. Add any non-existent IP to list of nameservers in /etc/resolv.conf
  2. Try running resolve -s google.com

Expected behavior
DNS lookup to be quick.

System:

  • OS: RHEL8
  • Architecture: x86_64
  • rustc version: [e.g. 1.73]

Version:
Crate: [e.g. client, server, resolver]
Version: [e.g. 0.24.0]

@djc
Copy link
Collaborator

djc commented Feb 28, 2024

It would be good to dig into more detail on this. This ends up calling AsyncResolver::inner_lookup(), but it would be good to understand what the ResolverConfig and ResolverOpts look like in this case. Unfortunately I won't be able to dig into this much more, but happy to provide guidance if you're able to provide more details on the behavior you're seeing.

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

No branches or pull requests

2 participants