Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
doc: add missing change to resolver ctor
PR-URL: #39610
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
oluan authored and targos committed Sep 4, 2021
1 parent d8d9a96 commit defb77c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/api/dns.md
Expand Up @@ -97,6 +97,9 @@ The following methods from the `dns` module are available:
<!-- YAML
added: v8.3.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/39610
description: The `options` object now accepts a `tries` option.
- version: v14.5.0
pr-url: https://github.com/nodejs/node/pull/33472
description: The constructor now accepts an `options` object.
Expand All @@ -109,7 +112,7 @@ Create a new resolver.
* `timeout` {integer} Query timeout in milliseconds, or `-1` to use the
default timeout.
* `tries` {integer} The number of tries the resolver will try contacting
each name server before giving up, `4` by default.
each name server before giving up. **Default:** `4`

### `resolver.cancel()`
<!-- YAML
Expand Down

0 comments on commit defb77c

Please sign in to comment.