Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 48149cf

Browse filesBrowse 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
Copy full SHA for 48149cf

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/dns.md‎

Copy file name to clipboardExpand all lines: doc/api/dns.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.