From 0ce615c4af2fbd19f99b5c65c044ce33cd4e1eba Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Fri, 18 Jan 2019 10:04:17 -0800 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca --- doc/api/dns.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/dns.md b/doc/api/dns.md index afbd7e253cde4c..ca4ca4bad529a6 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