GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify setServers() methods in dns.md · nodejs/node@f5fc412

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • dns.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/dns.md‎

Copy file name to clipboardExpand all lines: doc/api/dns.md
+14Lines changed: 14 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,13 @@ An error will be thrown if an invalid address is provided.
568568
The `dns.setServers()` method must not be called while a DNS query is in
569569
progress.
570570

571+
Note that this method works much like
572+
[resolve.conf](http://man7.org/linux/man-pages/man5/resolv.conf.5.html).
573+
That is, if attempting to resolve with the first server provided results in a
574+
`NOTFOUND` error, the `resolve()` method will *not* attempt to resolve with
575+
subsequent servers provided. Fallback DNS servers will only be used if the
576+
earlier ones time out or result in some other error.
577+
571578
## DNS Promises API
572579

573580
> Stability: 1 - Experimental
@@ -1010,6 +1017,13 @@ An error will be thrown if an invalid address is provided.
10101017
The `dnsPromises.setServers()` method must not be called while a DNS query is in
10111018
progress.
10121019

1020+
Note that this method works much like
1021+
[resolve.conf](http://man7.org/linux/man-pages/man5/resolv.conf.5.html).
1022+
That is, if attempting to resolve with the first server provided results in a
1023+
`NOTFOUND` error, the `resolve()` method will *not* attempt to resolve with
1024+
subsequent servers provided. Fallback DNS servers will only be used if the
1025+
earlier ones time out or result in some other error.
1026+
10131027
## Error codes
10141028

10151029
Each DNS query can return one of the following error codes:

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.