Skip to content

Commit 404730a

Browse files
richardlautargos
authored andcommitted
doc: update for changed --dns-result-order default
Update documentation to match the changed `--dns-result-order` default value in Node.js 17. Refs: #39987 PR-URL: #40538 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent acc22c7 commit 404730a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/api/cli.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ code from strings throw an exception instead. This does not affect the Node.js
207207
added:
208208
- v16.4.0
209209
- v14.18.0
210+
changes:
211+
- version: v17.0.0
212+
pr-url: https://github.com/nodejs/node/pull/39987
213+
description: Changed default value to `verbatim`.
210214
-->
211215

212216
Set the default value of `verbatim` in [`dns.lookup()`][] and
@@ -215,7 +219,7 @@ Set the default value of `verbatim` in [`dns.lookup()`][] and
215219
* `ipv4first`: sets default `verbatim` `false`.
216220
* `verbatim`: sets default `verbatim` `true`.
217221

218-
The default is `ipv4first` and [`dns.setDefaultResultOrder()`][] have higher
222+
The default is `verbatim` and [`dns.setDefaultResultOrder()`][] have higher
219223
priority than `--dns-result-order`.
220224

221225
### `--enable-fips`

doc/api/dns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ changes:
202202
* `verbatim` {boolean} When `true`, the callback receives IPv4 and IPv6
203203
addresses in the order the DNS resolver returned them. When `false`,
204204
IPv4 addresses are placed before IPv6 addresses.
205-
**Default:** `true` (addresses are reordered). Default value is
205+
**Default:** `true` (addresses are not reordered). Default value is
206206
configurable using [`dns.setDefaultResultOrder()`][] or
207207
[`--dns-result-order`][].
208208
* `callback` {Function}

0 commit comments

Comments
 (0)