From b7d264edaf2f3431e00de9b8f1023f3b0b548a93 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Mon, 9 Mar 2020 15:44:47 -0700 Subject: [PATCH] dns: add dns.ALL hints flag constant PR-URL: https://github.com/nodejs/node/pull/32183 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- doc/api/dns.md | 2 ++ lib/dns.js | 1 + lib/internal/dns/utils.js | 8 +++--- src/cares_wrap.cc | 3 +++ test/parallel/test-dns.js | 25 ++++++++++++++++--- .../parallel/test-net-connect-options-port.js | 2 +- .../parallel/test-tls-connect-hints-option.js | 4 +++ 7 files changed, 35 insertions(+), 10 deletions(-) diff --git a/doc/api/dns.md b/doc/api/dns.md index cea7db52f9b9d4..f854445b14d993 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -210,6 +210,8 @@ configured. Loopback addresses are not considered. * `dns.V4MAPPED`: If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported on some operating systems (e.g FreeBSD 10.1). +* `dns.ALL`: If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as +well as IPv4 mapped IPv6 addresses. ## `dns.lookupService(address, port, callback)`