Skip to content

Commit 20355c3

Browse files
sam-githubBethGriggs
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 13ee984 commit 20355c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/dns.md

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

578+
The [`dns.setServers()`][] method affects only [`dns.resolve()`][],
579+
[`dns.resolve*()`][] and [`dns.reverse()`][] (and specifically *not*
580+
[`dns.lookup()`][]).
581+
578582
Note that this method works much like
579583
[resolve.conf](http://man7.org/linux/man-pages/man5/resolv.conf.5.html).
580584
That is, if attempting to resolve with the first server provided results in a

0 commit comments

Comments
 (0)