-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
Open
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.
Description
Affected URL(s)
https://nodejs.org/docs/latest-v20.x/api/dns.html#dnslookuphostname-options-callback
Description of the problem
As seen in issues like: #55762
the signature described in the documentation is incorrect.
The docs describe the signature like this:
- callback
- err
- address A string representation of an IPv4 or IPv6 address.
- family 4 or 6, denoting the family of address, or 0 if the address is not an IPv4 or IPv6 address. 0 is a likely indicator of a bug in the name resolution service used by the operating system.
While in reality the signature looks like this:
callback(err, [{address, family}]);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.