summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2019-01-18 10:04:17 -0800
committerSam Roberts <vieuxtech@gmail.com>2019-01-25 10:18:03 -0800
commit0ce615c4af2fbd19f99b5c65c044ce33cd4e1eba (patch)
treed9af8318d36e483473ef5202b29621d5b7effad1 /doc
parent102d923bca92a2337a091f4b88147819753dad84 (diff)
downloadandroid-node-v8-0ce615c4af2fbd19f99b5c65c044ce33cd4e1eba.tar.gz
android-node-v8-0ce615c4af2fbd19f99b5c65c044ce33cd4e1eba.tar.bz2
android-node-v8-0ce615c4af2fbd19f99b5c65c044ce33cd4e1eba.zip
doc: clarify what dns.setResolvers() affects
It does not affect dns.lookup(). PR-URL: https://github.com/nodejs/node/pull/25570 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/dns.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md
index afbd7e253c..ca4ca4bad5 100644
--- a/doc/api/dns.md
+++ b/doc/api/dns.md
@@ -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