FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

dns.lookup signature out of date · Issue #57355 · nodejs/node · GitHub

/ node Public

dns.lookup signature out of date #57355

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}]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL