Skip to content

Instantly share code, notes, and snippets.

@devarajchidambaram
Created September 28, 2018 11:10
Show Gist options
  • Save devarajchidambaram/fce8c8a26c5fba538cfb3827edac54ba to your computer and use it in GitHub Desktop.
Save devarajchidambaram/fce8c8a26c5fba538cfb3827edac54ba to your computer and use it in GitHub Desktop.
DNS lookup vs resolve
/**These functions are implemented quite differently than dns.lookup(). They do not use getaddrinfo(3) and they always perform a DNS
query on the network. This network communication is always done asynchronously, and does not use libuv's threadpool.
Always use DNS.resolve it network operations
Dont use use DNS.lookup its uses the threadpool (Thread pool is limited)**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment