-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: dns.lookup() documentation error code #27625
Conversation
dns.lookup() will always return ENOTFOUND on a empty lookup or when the host not found. https://github.com/nodejs/node/blob/master/lib/internal/errors.js#L503 Fixes: #27604
What about (from the docs) |
I experimented and seemed to get ENOTFOUND in that situation too. #27604 (comment) |
Landed in fd8d5e7 |
dns.lookup() will always return ENOTFOUND on a empty lookup or when the host not found. https://github.com/nodejs/node/blob/master/lib/internal/errors.js#L503 Fixes: nodejs#27604 PR-URL: nodejs#27625 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
dns.lookup() will always return ENOTFOUND on a empty lookup or when the host not found. https://github.com/nodejs/node/blob/master/lib/internal/errors.js#L503 Fixes: #27604 PR-URL: #27625 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
dns.lookup() will always return ENOTFOUND on a empty lookup
or when the host not found.
https://github.com/nodejs/node/blob/master/lib/internal/errors.js#L503
Fixes: #27604
make -j4 test
(UNIX), orvcbuild test
(Windows) passes