diff options
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r-- | doc/api/dns.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md index 7536c1eee20..96df42c980f 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -92,6 +92,22 @@ The following methods from the `dns` module are available: * [`resolver.reverse()`][`dns.reverse()`] * [`resolver.setServers()`][`dns.setServers()`] +### `Resolver([options])` +<!-- YAML +added: v8.3.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/33472 + description: The constructor now accepts an `options` object. + The single supported option is `timeout`. +--> + +Create a new resolver. + +* `options` {Object} + * `timeout` {integer} Query timeout in milliseconds, or `-1` to use the + default timeout. + ### `resolver.cancel()` <!-- YAML added: v8.3.0 |