From 266cb200957da40f83c49167695d8a6aff790a8f Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Mon, 9 Mar 2020 15:44:47 -0700 Subject: [PATCH 1/2] dns: Add dns.ALL hints flag constant --- doc/api/dns.md | 2 ++ lib/dns.js | 1 + lib/internal/dns/utils.js | 8 +++--- lib/internal/http2/core.js | 6 ++++- 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 +++ 8 files changed, 40 insertions(+), 11 deletions(-) diff --git a/doc/api/dns.md b/doc/api/dns.md index 6c7f29cfaf0f85..aac864b02e81e5 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -209,6 +209,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)`