Skip to content

Commit c094c1e

Browse files
committed
doc: remove outdated sentence
The `'IPv4'` and `'IPv6'` values are no longer supported. Fixes: nodejs#54961
1 parent 53ede87 commit c094c1e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/api/dns.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,11 @@ changes:
246246

247247
* `hostname` {string}
248248
* `options` {integer | Object}
249-
* `family` {integer|string} The record family. Must be `4`, `6`, or `0`. For
250-
backward compatibility reasons,`'IPv4'` and `'IPv6'` are interpreted as `4`
251-
and `6` respectively. The value `0` indicates that either an IPv4 or IPv6
252-
address is returned. If the value `0` is used with `{ all: true }` (see
253-
below), either one of or both IPv4 and IPv6 addresses are returned,
254-
depending on the system's DNS resolver. **Default:** `0`.
249+
* `family` {integer|string} The record family. Must be `4`, `6`, or `0`. The
250+
value `0` indicates that either an IPv4 or IPv6 address is returned. If the
251+
value `0` is used with `{ all: true }` (see below), either one of or both
252+
IPv4 and IPv6 addresses are returned, depending on the system's DNS
253+
resolver. **Default:** `0`.
255254
* `hints` {number} One or more [supported `getaddrinfo` flags][]. Multiple
256255
flags may be passed by bitwise `OR`ing their values.
257256
* `all` {boolean} When `true`, the callback returns all resolved addresses in

0 commit comments

Comments
 (0)