Here's the digging my ISP did: [root@dvs-node01 ~]# node > var dns = require('dns') undefined > dns.resolve('github.com', function(e, h) { console.log(JSON.stringify(h)) } ) { oncomplete: [Function: onanswer] } > ["207.97.227.239"] undefined > dns.resolve6('github.com', function(e, h) { console.log(JSON.stringify(h)) } ) { oncomplete: [Function: onanswer] } > ["2001:db8:1:ffff::cf61:e3ef"] undefined > dns.resolve4 = dns.resolve6 [Function: query] > dns.resolve('github.com', function(e, h) { console.log(JSON.stringify(h)) } ) { oncomplete: [Function: onanswer] } > ["2001:db8:1:ffff::cf61:e3ef"]
So it seems that node's basic DNS function *only* returns IPv4 addresses. Or something. -Robin On Sat, Dec 29, 2012 at 12:53:51AM +0000, Phil Mayers wrote: > [Grumble stupid mobile devices ...] > > ...I'm assuming you're deliberately engaging in a learning > exercise and don't want the rest of your experiments to be held up > waiting for this one issue to be fixed. But please do hassle the > app vendor/devs to fix their broken stuff. > > Tbh I'm still a bit dubious - node is pretty new and it seems > crazy such a new framework would spoon up getaddrinfo() - are you > sure it isn't an os or stack config issue? > > Phil Mayers <p.may...@imperial.ac.uk> wrote: > > >Not hard - rpz zone with a single record will do it. I'm not typing on > >an ideal device to give an example right now, I'm afraid ... > > > >Mark is of course correct that v6-only is a struggle right now and that > >fixing the apps is the proper solution. But I'm > > > > -- > Sent from my mobile device, please excuse brevity and typos. _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users