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
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.
I currently have some issues with dual stack ipv6 resolution. The nodejs dns module returns ipv4 address instead of expected ipv6.
I saw there was a PR which introduced a verbatim flag: #14731
Based on the test (https://github.com/nodejs/node/pull/14731/files#diff-91621d3f4af56103203147a5cc370565) I tried to do some test code to validate if it's doing what I expect: Order the ipv6 before the ipv4 which was not the case:
output:
The text was updated successfully, but these errors were encountered: