-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: clarify what dns.setResolvers() affects #25570
Conversation
5a91f8d
to
ccec12a
Compare
The `dns.setServers()` method affects only the methods of [`dns.Resolver`][] | ||
that have equivalents as `dns.*()` APIs (and specifically *not* | ||
[`dns.lookup()`][]). It must not be called while those methods are in progress. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: unneeded empty line?
ccec12a
to
905a392
Compare
I haven't changed this text, and don't want to get into it here. I'll add it to my todo list. Can you reference the PR that did this? It'll need YAML change markers. If you don't know, I'll track it down some time. The structure of the docs are confusing. The Resolver class refers to the global docs, but it really be the other way around, the Resolver methods should be documented, and the globals should state that there is a global Resolver. An astute reader could guess that its implemented like this, but it isn't clearly stated. |
It does not affect dns.lookup().
905a392
to
d003bcd
Compare
Landed in 0ce615c |
It does not affect dns.lookup(). PR-URL: nodejs#25570 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
It does not affect dns.lookup(). PR-URL: #25570 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
It does not affect dns.lookup(). PR-URL: #25570 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
It does not affect dns.lookup(). PR-URL: #25570 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
It does not affect dns.lookup(). PR-URL: #25570 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
It does not affect dns.lookup().
cf. #25560
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes