Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 404730a

Browse filesBrowse 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 <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent acc22c7 commit 404730a
Copy full SHA for 404730a

File tree

Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/cli.md‎

Copy file name to clipboardExpand all lines: doc/api/cli.md
+5-1Lines changed: 5 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
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`
Collapse file

‎doc/api/dns.md‎

Copy file name to clipboardExpand all lines: doc/api/dns.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.