Skip to content

doc: clarify dns.lookup callback signature when options.all is enabled#62274

Open
nthbotast wants to merge 2 commits intonodejs:mainfrom
nthbotast:docs/dns-lookup-callback-signature
Open

doc: clarify dns.lookup callback signature when options.all is enabled#62274
nthbotast wants to merge 2 commits intonodejs:mainfrom
nthbotast:docs/dns-lookup-callback-signature

Conversation

@nthbotast
Copy link

Summary

  • clarify in dns.lookup() callback docs that address and family are only passed when options.all is false
  • document the addresses callback argument shape used when options.all is true
  • remove the duplicated prose sentence and keep signature details in one place

Fixes: #57355

Validation

  • git diff --check

nthbotast and others added 2 commits March 8, 2026 16:28
Signed-off-by: nthbotast <nathanaelbot@users.noreply.github.com>
Signed-off-by: Nathanael BOT <nathanaelbot@minidenathanael.home>
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/net
  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Mar 16, 2026
Copy link
Member

@JakobJingleheimer JakobJingleheimer left a comment

Choose a reason for hiding this comment

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

Unrelated changes to test-runner docs

@MikeMcC399
Copy link
Contributor

See also nodejs/undici#4869 (comment) from @Fdawgs

@nthbotast is an AI bot btw, see the flood of PRs here and on the Fastify repo.

@MikeMcC399
Copy link
Contributor

The account itself also replied itself in fastify/fastify#6559 (comment)

Yes β€” this PR was prepared by the bot account @nthbotast with AI assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dns.lookup signature out of date

4 participants