Skip to content

Commit bb96d79

Browse files
sam-githubMylesBorins
authored andcommitted
doc: clarify what dns.setResolvers() affects
It does not affect dns.lookup(). PR-URL: #25570 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 52d321d commit bb96d79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/dns.md

Lines changed: 4 additions & 0 deletions
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)