Repository navigation
Dns resolver ipv6 #1082
Copy link
Copy link
Closed
Labels
dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.
Description
Activity
I think @cjihrig did a lot of the ipv6 stuff
- addeddnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.
on Mar 6, 2015 @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: 6line.'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
localhostto bind to IPv6?I think the main problem here is that the docs don't mention anything about a
familyproperty in the request options.ping @0x4139
- addeddocIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.
on Apr 28, 2015 @silverwind sorry for the delayed answer this is what i was looking for!
@cjihrig the
familyoption there is only used for resolution ofhost, right?@silverwind, yes I think it's currently undocumented behavior, but the
familyoption eventually makes its way here to resolve the host.- added a commit that references this issue
on May 1, 2015 Fixed by b4ad5d7
Metadata
Metadata
Assignees
Labels
dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.
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.