Closed curlyblueeagle closed 2 years ago
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?
cacheable-lookup
dns.resolve
dns.lookup
Correct. It uses dns.lookup as a fallback in order to support /etc/hosts.
/etc/hosts
Perfect thank you! This answers my question, so I will close issue.
Sorry if this seems like a basic question, but how does
cacheable-lookup
resolve DNS? Looking at the code it seems to be usingdns.resolve
withdns.lookup
as a fallback. Am I correct in this assumption?