cacheable-lookup icon indicating copy to clipboard operation
cacheable-lookup copied to clipboard

Question: How is DNS resolved?

Open curlyblueeagle opened this issue 4 years ago • 2 comments

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?

curlyblueeagle avatar Jan 07 '22 17:01 curlyblueeagle

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

szmarczak avatar Jan 07 '22 23:01 szmarczak

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

curlyblueeagle avatar Jan 10 '22 14:01 curlyblueeagle