Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3780683

Browse filesBrowse files
cjihrigBridgeAR
authored andcommitted
doc: document behavior of family:0 in dns.lookup()
Fixes: #28159 PR-URL: #28163 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 39063b3 commit 3780683
Copy full SHA for 3780683

File tree

Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/dns.md‎

Copy file name to clipboardExpand all lines: doc/api/dns.md
+6-4Lines changed: 6 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ changes:
139139
-->
140140
* `hostname` {string}
141141
* `options` {integer | Object}
142-
- `family` {integer} The record family. Must be `4` or `6`. IPv4
143-
and IPv6 addresses are both returned by default.
142+
- `family` {integer} The record family. Must be `4`, `6`, or `0`. The value
143+
`0` indicates that IPv4 and IPv6 addresses are both returned. **Default:**
144+
`0`.
144145
- `hints` {number} One or more [supported `getaddrinfo` flags][]. Multiple
145146
flags may be passed by bitwise `OR`ing their values.
146147
- `all` {boolean} When `true`, the callback returns all resolved addresses in
@@ -669,8 +670,9 @@ added: v10.6.0
669670
-->
670671
* `hostname` {string}
671672
* `options` {integer | Object}
672-
- `family` {integer} The record family. Must be `4` or `6`. IPv4
673-
and IPv6 addresses are both returned by default.
673+
- `family` {integer} The record family. Must be `4`, `6`, or `0`. The value
674+
`0` indicates that IPv4 and IPv6 addresses are both returned. **Default:**
675+
`0`.
674676
- `hints` {number} One or more [supported `getaddrinfo` flags][]. Multiple
675677
flags may be passed by bitwise `OR`ing their values.
676678
- `all` {boolean} When `true`, the `Promise` is resolved with all addresses in

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.