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

Question: How is DNS resolved? #53

Closed
curlyblueeagle opened this issue Jan 7, 2022 · 2 comments
Closed

Question: How is DNS resolved? #53

curlyblueeagle opened this issue Jan 7, 2022 · 2 comments

Comments

@curlyblueeagle
Copy link

Sorry if this seems like a basic question, but how does cacheable-lookup resolve DNS? Looking at the code it seems to be using dns.resolve with dns.lookup as a fallback. Am I correct in this assumption?

@szmarczak
Copy link
Owner

Correct. It uses dns.lookup as a fallback in order to support /etc/hosts.

@curlyblueeagle
Copy link
Author

Perfect thank you! This answers my question, so I will close issue.

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