@@ -204,8 +204,9 @@ changes:
204204* ` options ` {integer | Object}
205205 * ` family ` {integer|string} The record family. Must be ` 4 ` , ` 6 ` , or ` 0 ` . For
206206 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 ` .
209210 * ` hints ` {number} One or more [ supported ` getaddrinfo ` flags] [ ] . Multiple
210211 flags may be passed by bitwise ` OR ` ing their values.
211212 * ` all ` {boolean} When ` true ` , the callback returns all resolved addresses in
@@ -951,8 +952,9 @@ added: v10.6.0
951952* ` hostname ` {string}
952953* ` options ` {integer | Object}
953954 * ` 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 ` .
956958 * ` hints ` {number} One or more [ supported ` getaddrinfo ` flags] [ ] . Multiple
957959 flags may be passed by bitwise ` OR ` ing their values.
958960 * ` all ` {boolean} When ` true ` , the ` Promise ` is resolved with all addresses in
0 commit comments