Skip to content

Commit 48149cf

Browse files
sam-githubaddaleax
authored andcommitted
doc: clarify what dns.setResolvers() affects
It does not affect dns.lookup(). PR-URL: #25570 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 3488f0d commit 48149cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: doc/api/dns.md

+4
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ An error will be thrown if an invalid address is provided.
571571
The `dns.setServers()` method must not be called while a DNS query is in
572572
progress.
573573

574+
The [`dns.setServers()`][] method affects only [`dns.resolve()`][],
575+
[`dns.resolve*()`][] and [`dns.reverse()`][] (and specifically *not*
576+
[`dns.lookup()`][]).
577+
574578
Note that this method works much like
575579
[resolve.conf](http://man7.org/linux/man-pages/man5/resolv.conf.5.html).
576580
That is, if attempting to resolve with the first server provided results in a

0 commit comments

Comments
 (0)