@@ -204,8 +204,9 @@ changes:
204
204
* ` options ` {integer | Object}
205
205
* ` family ` {integer|string} The record family. Must be ` 4 ` , ` 6 ` , or ` 0 ` . For
206
206
backward compatibility reasons,` 'IPv4' ` and ` 'IPv6' ` are interpreted as ` 4 `
207
- and ` 6 ` respectively. The value ` 0 ` indicates that IPv4 and IPv6 addresses
208
- are both returned. ** Default:** ` 0 ` .
207
+ and ` 6 ` respectively. The value ` 0 ` indicates that either an IPv4 or IPv6
208
+ address is returned. If the value ` 0 ` is used with ` { all: true } (see below) ` ,
209
+ both IPv4 and IPv6 addresses are returned. ** Default:** ` 0 ` .
209
210
* ` hints ` {number} One or more [ supported ` getaddrinfo ` flags] [ ] . Multiple
210
211
flags may be passed by bitwise ` OR ` ing their values.
211
212
* ` all ` {boolean} When ` true ` , the callback returns all resolved addresses in
@@ -953,8 +954,9 @@ added: v10.6.0
953
954
* ` hostname ` {string}
954
955
* ` options ` {integer | Object}
955
956
* ` family ` {integer} The record family. Must be ` 4 ` , ` 6 ` , or ` 0 ` . The value
956
- ` 0 ` indicates that IPv4 and IPv6 addresses are both returned. ** Default:**
957
- ` 0 ` .
957
+ ` 0 ` indicates that either an IPv4 or IPv6 address is returned. If the
958
+ value ` 0 ` is used with ` { all: true } ` (see below), both IPv4 and IPv6
959
+ addresses are returned. ** Default:** ` 0 ` .
958
960
* ` hints ` {number} One or more [ supported ` getaddrinfo ` flags] [ ] . Multiple
959
961
flags may be passed by bitwise ` OR ` ing their values.
960
962
* ` all ` {boolean} When ` true ` , the ` Promise ` is resolved with all addresses in
0 commit comments