Skip to content

doc: fix dnsPromises.lookup verbatim default#64658

Open
BIGSUS24 wants to merge 1 commit into
nodejs:mainfrom
BIGSUS24:doc-dnspromises-lookup-verbatim-default
Open

doc: fix dnsPromises.lookup verbatim default#64658
BIGSUS24 wants to merge 1 commit into
nodejs:mainfrom
BIGSUS24:doc-dnspromises-lookup-verbatim-default

Conversation

@BIGSUS24

Copy link
Copy Markdown

The verbatim option for dnsPromises.lookup() documents its default as false (addresses reordered), but that's stale. The default flipped to true in v17 (#39987), same as the callback dns.lookup().

You can see it contradicts itself already: the order bullet right above says verbatim (addresses are not reordered) by default, and the dns.lookup() section documents the same verbatim option as true. Source confirms it too — both paths start from DNS_ORDER_VERBATIM (lib/dns.js, lib/internal/dns/promises.js), with the global default set to 'verbatim' in lib/internal/dns/utils.js.

This just updates the dnsPromises.lookup() bullet to match. Docs only.

The verbatim default flipped to true in v17 (nodejs#39987), but the
dnsPromises.lookup docs still say false. The order bullet right above
it and the dns.lookup section both already say the addresses are not
reordered by default, so this bullet was contradicting them.

Signed-off-by: BIGSUS24 <152616194+BIGSUS24@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 21, 2026 18:04
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/net

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@nodejs-github-bot nodejs-github-bot added dns Issues and PRs related to the dns subsystem. doc Issues and PRs related to the documentations. labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dns Issues and PRs related to the dns subsystem. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants