Browse files

doc: clarify what dns.setResolvers() affects

It does not affect dns.lookup().

PR-URL: #25570
Reviewed-By: Vse Mozhet Byt <>
Reviewed-By: Luigi Pinca <>
  • Loading branch information...
sam-github authored and addaleax committed Jan 18, 2019
1 parent 3488f0d commit 48149cfa3a58185c1d335cdbdeded02710c78885
Showing with 4 additions and 0 deletions.
  1. +4 −0 doc/api/
@@ -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

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

Note that this method works much like
That is, if attempting to resolve with the first server provided results in a

0 comments on commit 48149cf

Please sign in to comment.