-
Notifications
You must be signed in to change notification settings - Fork 30k
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
dns docs are missing that family = 0 for dns.lookup is allowed #28159
Comments
So, the Node.js documentation is clearly wrong, and omitting an important feature here (although it’s the default behaviour). I’m moving this over to the main repo as it’s a documentation bug. |
Fixed via #28163. |
dns
,net
,tls
Quick question: is
dns.lookup(url, 0, callback)
supported as part of Node's API? The documentation saysMust be 4 or 6
, and any positive integer other than 4 or 6 will return aTypeError [ERR_INVALID_OPT_VALUE]: The value "2" is invalid for option "family"
. But passing in0
does not error. Is this expected? If so, is this something stable that developers can rely on?The text was updated successfully, but these errors were encountered: