From a6fdc5cf4c91c43508c56e68ff94353300b54af7 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 10 May 2022 11:10:03 +0200 Subject: [PATCH] dns: accept `'IPv4'` and `'IPv6'` as valid `family` values Refs: https://github.com/nodejs/node/issues/43014 --- doc/api/dns.md | 16 +++++++++++----- lib/dns.js | 14 ++++++++++++-- test/internet/test-dns-lookup.js | 2 +- .../parallel/test-net-socket-ready-without-cb.js | 2 +- 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/doc/api/dns.md b/doc/api/dns.md index c9e901da677283..0d281fdffe051f 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -179,6 +179,11 @@ section if a custom port is used.