You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
verbatim flag for dns resolution does not change order #17802
So I don't get when the verbatim flag is doing anything.
@cjihrig, Since dns.lookup didn't returned the expected result I dived a little bit deeper unto dns.js and saw that in my use case only the first result of getaddrinfo is used: https://github.com/nodejs/node/blob/master/lib/dns.js#L95-L104
So I wrote a test case based on process.binding().
So I don't get when the verbatim flag is doing anything.
verbatim does exactly what it says - when true, it returns the results as it receives them from the resolver. (I'm basically restating what Colin already said...)
If you only want IPv6 results, query for AAAA records. I'll close this out.
Activity
cjihrig commentedon Dec 21, 2017
My understanding was that
verbatimjust means that the DNS results are not sorted. That doesn't guarantee that IPv6 will come first.Side question: Why are you using
process.binding()instead ofdns.lookup()?asbachb commentedon Dec 21, 2017
I also had some windows test system which results in:
So I don't get when the verbatim flag is doing anything.
@cjihrig, Since dns.lookup didn't returned the expected result I dived a little bit deeper unto dns.js and saw that in my use case only the first result of getaddrinfo is used: https://github.com/nodejs/node/blob/master/lib/dns.js#L95-L104
So I wrote a test case based on
process.binding().bnoordhuis commentedon Dec 21, 2017
verbatimdoes exactly what it says - when true, it returns the results as it receives them from the resolver. (I'm basically restating what Colin already said...)If you only want IPv6 results, query for AAAA records. I'll close this out.
asbachb commentedon Dec 21, 2017
Just to complete this one. I did the mistake to run this on the wrong machine. On a host with correct ipv6 configuration the test code results to: