diff options
author | btea <2356281422@qq.com> | 2023-04-26 16:56:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 08:56:04 +0000 |
commit | 2ac5e9889aba461f5a54d320973d2574980d206b (patch) | |
tree | 7ac12e914a2aaca7b07fb32a96523b881f754014 /doc/api | |
parent | 71a776b9283dea5aff42b52997389e5a1a4b5455 (diff) | |
download | node-new-2ac5e9889aba461f5a54d320973d2574980d206b.tar.gz |
dns: expose getDefaultResultOrder
PR-URL: https://github.com/nodejs/node/pull/46973
Fixes: https://github.com/nodejs/node/issues/46919
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/dns.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md index 59a56c7d1c..2bb997bb0a 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -792,6 +792,18 @@ priority than [`--dns-result-order`][]. When using [worker threads][], [`dns.setDefaultResultOrder()`][] from the main thread won't affect the default dns orders in workers. +## `dns.getDefaultResultOrder()` + +<!-- YAML +added: REPLACEME +--> + +Get the default value for `verbatim` in [`dns.lookup()`][] and +[`dnsPromises.lookup()`][]. The value could be: + +* `ipv4first`: for `verbatim` defaulting to `false`. +* `verbatim`: for `verbatim` defaulting to `true`. + ## `dns.setServers(servers)` <!-- YAML @@ -1351,6 +1363,14 @@ higher priority than [`--dns-result-order`][]. When using [worker threads][], [`dnsPromises.setDefaultResultOrder()`][] from the main thread won't affect the default dns orders in workers. +### `dnsPromises.getDefaultResultOrder()` + +<!-- YAML +added: REPLACEME +--> + +Get the value of `dnsOrder`. + ### `dnsPromises.setServers(servers)` <!-- YAML |