cacheable-lookup
cacheable-lookup copied to clipboard
Question: How is DNS resolved?
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?
Correct. It uses dns.lookup as a fallback in order to support /etc/hosts.
Perfect thank you! This answers my question, so I will close issue.