Skip to content

Commit

Permalink
doc: clarify what dns.setResolvers() affects
Browse files Browse the repository at this point in the history
It does not affect dns.lookup().
  • Loading branch information
sam-github committed Jan 24, 2019
1 parent 2e613a9 commit d003bcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ An error will be thrown if an invalid address is provided.
The `dns.setServers()` method must not be called while a DNS query is in
progress.

The [`dns.setServers()`][] method affects only [`dns.resolve()`][],
[`dns.resolve*()`][] and [`dns.reverse()`][] (and specifically *not*
[`dns.lookup()`][]).

Note that this method works much like
[resolve.conf](http://man7.org/linux/man-pages/man5/resolv.conf.5.html).
That is, if attempting to resolve with the first server provided results in a
Expand Down

0 comments on commit d003bcd

Please sign in to comment.