Skip to content

Dns resolver ipv6 #1082

Description

@0x4139

require('http') is responsible for passing the host to the dns resolver, when the the address you want to bind on is ipv6 the dns resolver should return the ipv6 address instead of the ipv4 one.

Activity

  1. Fishrock123 commented on Mar 6, 2015

    @Fishrock123
    Contributor

    I think @cjihrig did a lot of the ipv6 stuff

  2. added
    dnsIssues and PRs related to the dns subsystem.
    on Mar 6, 2015
  3. cjihrig commented on Mar 6, 2015

    @cjihrig
    Contributor

    @0x4139 could you please provide some example code of what you're looking for? For example, the following code will only work if you uncomment the family: 6 line.

    'use strict';
    var http = require('http');
    var server = http.createServer(function(req, res) {
      res.end();
    });
    
    server.listen({port: 4000, host: '::1'}, function() {
      var connection = http.get({
        port: 4000,
        // family: 6
      }, function() {
        server.close();
      });
    });

    Or, is the problem with trying to force something like localhost to bind to IPv6?

  4. gildean commented on Mar 9, 2015

    @gildean

    I think the main problem here is that the docs don't mention anything about a family property in the request options.

  5. silverwind commented on Mar 25, 2015

    @silverwind
    Contributor

    ping @0x4139

  6. added
    docIssues and PRs related to Node.js documentation.
    on Apr 28, 2015
  7. 0x4139 commented on Apr 28, 2015

    @0x4139
    Author

    @silverwind sorry for the delayed answer this is what i was looking for!

  8. silverwind commented on Apr 28, 2015

    @silverwind
    Contributor

    @cjihrig the family option there is only used for resolution of host, right?

  9. cjihrig commented on Apr 28, 2015

    @cjihrig
    Contributor

    @silverwind, yes I think it's currently undocumented behavior, but the family option eventually makes its way here to resolve the host.

  10. silverwind commented on May 1, 2015

    @silverwind
    Contributor

    Fixed by b4ad5d7

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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions