Skip to content

Commit be85d5a

Browse files
tikotzkyjuanarbol
authored andcommitted
doc: update to match changed --dns-result-order default
Update documentation to match the changed `--dns-result-order` default value in Node.js 17.0.0. PR-URL: #46148 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 08a6a61 commit be85d5a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

doc/api/dns.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,10 @@ one of the [DNS error codes][].
773773
added:
774774
- v16.4.0
775775
- v14.18.0
776+
changes:
777+
- version: v17.0.0
778+
pr-url: https://github.com/nodejs/node/pull/39987
779+
description: Changed default value to `verbatim`.
776780
-->
777781

778782
* `order` {string} must be `'ipv4first'` or `'verbatim'`.
@@ -783,7 +787,7 @@ Set the default value of `verbatim` in [`dns.lookup()`][] and
783787
* `ipv4first`: sets default `verbatim` `false`.
784788
* `verbatim`: sets default `verbatim` `true`.
785789

786-
The default is `ipv4first` and [`dns.setDefaultResultOrder()`][] have higher
790+
The default is `verbatim` and [`dns.setDefaultResultOrder()`][] have higher
787791
priority than [`--dns-result-order`][]. When using [worker threads][],
788792
[`dns.setDefaultResultOrder()`][] from the main thread won't affect the default
789793
dns orders in workers.
@@ -1328,6 +1332,10 @@ is one of the [DNS error codes][].
13281332
added:
13291333
- v16.4.0
13301334
- v14.18.0
1335+
changes:
1336+
- version: v17.0.0
1337+
pr-url: https://github.com/nodejs/node/pull/39987
1338+
description: Changed default value to `verbatim`.
13311339
-->
13321340

13331341
* `order` {string} must be `'ipv4first'` or `'verbatim'`.
@@ -1338,7 +1346,7 @@ Set the default value of `verbatim` in [`dns.lookup()`][] and
13381346
* `ipv4first`: sets default `verbatim` `false`.
13391347
* `verbatim`: sets default `verbatim` `true`.
13401348

1341-
The default is `ipv4first` and [`dnsPromises.setDefaultResultOrder()`][] have
1349+
The default is `verbatim` and [`dnsPromises.setDefaultResultOrder()`][] have
13421350
higher priority than [`--dns-result-order`][]. When using [worker threads][],
13431351
[`dnsPromises.setDefaultResultOrder()`][] from the main thread won't affect the
13441352
default dns orders in workers.

0 commit comments

Comments
 (0)