Skip to content

doc: dns.resolve wrong callback addresses argument description #6506

Description

@MrQubo

The dns.resolve(hostname[, rrtype], callback) description says:

The callback function has arguments (err, addresses). When successful, addresses will be an array.

But it's not true for SOA record.

dns.resolve documentation:
https://nodejs.org/docs/latest-v6.x/api/dns.html#dns_dns_resolve_hostname_rrtype_callback

Activity

  1. added
    docIssues and PRs related to Node.js documentation.
    dnsIssues and PRs related to the dns subsystem.
    on May 1, 2016
  2. silverwind commented on May 2, 2016

    @silverwind
    Contributor

    SOA returns objects. Should be an easy doc addition.

  3. self-assigned this
    on May 3, 2016
  4. tarungarg546 commented on Jun 27, 2016

    @tarungarg546
    Contributor

    Any update. What exactly needs to be done.

  5. qheaden commented on Jul 4, 2016

    @qheaden
    Contributor

    I would like to work on this one. Feel free to make me an assignee on this so others will know I am working on it. I will update the DNS module docs.

  6. qheaden commented on Jul 4, 2016

    @qheaden
    Contributor

    I see that the dns.resolveSoa() method documents the object correctly. Should that information be copied to the dns.resolve() documentation, or should it just point users to dns.resolveSoa() to explain the SOA record object?

  7. silverwind commented on Jul 4, 2016

    @silverwind
    Contributor

    Should that information be copied to the dns.resolve() documentation, or should it just point users to dns.resolveSoa() to explain the SOA record object?

    No need to duplicate that information, just point (link) to it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dnsIssues and PRs related to the dns subsystem.docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions