Created
September 28, 2018 11:10
-
-
Save devarajchidambaram/fce8c8a26c5fba538cfb3827edac54ba to your computer and use it in GitHub Desktop.
DNS lookup vs resolve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**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