@@ -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
@@ -951,8 +952,9 @@ added: v10.6.0
951
952
* ` hostname ` {string}
952
953
* ` options ` {integer | Object}
953
954
* ` family ` {integer} The record family. Must be ` 4 ` , ` 6 ` , or ` 0 ` . The value
954
- ` 0 ` indicates that IPv4 and IPv6 addresses are both returned. ** Default:**
955
- ` 0 ` .
955
+ ` 0 ` indicates that either an IPv4 or IPv6 address is returned. If the
956
+ value ` 0 ` is used with ` { all: true } ` (see below), both IPv4 and IPv6
957
+ addresses are returned. ** Default:** ` 0 ` .
956
958
* ` hints ` {number} One or more [ supported ` getaddrinfo ` flags] [ ] . Multiple
957
959
flags may be passed by bitwise ` OR ` ing their values.
958
960
* ` all ` {boolean} When ` true ` , the ` Promise ` is resolved with all addresses in
0 commit comments