@@ -210,8 +210,9 @@ changes:
210
210
* ` family ` {integer|string} The record family. Must be ` 4 ` , ` 6 ` , or ` 0 ` . For
211
211
backward compatibility reasons,` 'IPv4' ` and ` 'IPv6' ` are interpreted as ` 4 `
212
212
and ` 6 ` respectively. The value ` 0 ` indicates that either an IPv4 or IPv6
213
- address is returned. If the value ` 0 ` is used with ` { all: true } (see below) ` ,
214
- both IPv4 and IPv6 addresses are returned. ** Default:** ` 0 ` .
213
+ address is returned. If the value ` 0 ` is used with ` { all: true } ` (see
214
+ below), either one of or both IPv4 and IPv6 addresses are returned,
215
+ depending on the system's DNS resolver. ** Default:** ` 0 ` .
215
216
* ` hints ` {number} One or more [ supported ` getaddrinfo ` flags] [ ] . Multiple
216
217
flags may be passed by bitwise ` OR ` ing their values.
217
218
* ` all ` {boolean} When ` true ` , the callback returns all resolved addresses in
@@ -240,8 +241,8 @@ changes:
240
241
241
242
Resolves a host name (e.g. ` 'nodejs.org' ` ) into the first found A (IPv4) or
242
243
AAAA (IPv6) record. All ` option ` properties are optional. If ` options ` is an
243
- integer, then it must be ` 4 ` or ` 6 ` – if ` options ` is ` 0 ` or not provided, then
244
- IPv4 and IPv6 addresses are both returned if found.
244
+ integer, then it must be ` 4 ` or ` 6 ` – if ` options ` is not provided, then
245
+ either IPv4 or IPv6 addresses, or both, are returned if found.
245
246
246
247
With the ` all ` option set to ` true ` , the arguments for ` callback ` change to
247
248
` (err, addresses) ` , with ` addresses ` being an array of objects with the
@@ -988,8 +989,9 @@ changes:
988
989
* ` options ` {integer | Object}
989
990
* ` family ` {integer} The record family. Must be ` 4 ` , ` 6 ` , or ` 0 ` . The value
990
991
` 0 ` indicates that either an IPv4 or IPv6 address is returned. If the
991
- value ` 0 ` is used with ` { all: true } ` (see below), both IPv4 and IPv6
992
- addresses are returned. ** Default:** ` 0 ` .
992
+ value ` 0 ` is used with ` { all: true } ` (see below), either one of or both
993
+ IPv4 and IPv6 addresses are returned, depending on the system's DNS
994
+ resolver. ** Default:** ` 0 ` .
993
995
* ` hints ` {number} One or more [ supported ` getaddrinfo ` flags] [ ] . Multiple
994
996
flags may be passed by bitwise ` OR ` ing their values.
995
997
* ` all ` {boolean} When ` true ` , the ` Promise ` is resolved with all addresses in
@@ -1013,8 +1015,8 @@ changes:
1013
1015
1014
1016
Resolves a host name (e.g. ` 'nodejs.org' ` ) into the first found A (IPv4) or
1015
1017
AAAA (IPv6) record. All ` option ` properties are optional. If ` options ` is an
1016
- integer, then it must be ` 4 ` or ` 6 ` – if ` options ` is not provided, then IPv4
1017
- and IPv6 addresses are both returned if found.
1018
+ integer, then it must be ` 4 ` or ` 6 ` – if ` options ` is not provided, then
1019
+ either IPv4 or IPv6 addresses, or both, are returned if found.
1018
1020
1019
1021
With the ` all ` option set to ` true ` , the ` Promise ` is resolved with ` addresses `
1020
1022
being an array of objects with the properties ` address ` and ` family ` .
0 commit comments