Skip to content

fix: fallback to hickory_resolver's default config if reading /etc/resolv.conf fails #2797

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

monosans
Copy link

On some platforms, for example Android, /etc/resolv.conf does not exist, so it becomes difficult to use hickory-dns with reqwest. This PR fixes this.

hickory-resolver's default is Google DNS, though I would suggest using Cloudflare DNS instead. Please let me know what you think.

Related hickory-dns issue: hickory-dns/hickory-dns#652.

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