Title: dns.lookup signature out of date · Issue #57355 · nodejs/node · GitHub
Open Graph Title: dns.lookup signature out of date · Issue #57355 · nodejs/node
X Title: dns.lookup signature out of date · Issue #57355 · nodejs/node
Description: Affected URL(s) https://nodejs.org/docs/latest-v20.x/api/dns.html#dnslookuphostname-options-callback Description of the problem As seen in issues like: #55762 the signature described in the documentation is incorrect. The docs describe t...
Open Graph Description: Affected URL(s) https://nodejs.org/docs/latest-v20.x/api/dns.html#dnslookuphostname-options-callback Description of the problem As seen in issues like: #55762 the signature described in the documen...
X Description: Affected URL(s) https://nodejs.org/docs/latest-v20.x/api/dns.html#dnslookuphostname-options-callback Description of the problem As seen in issues like: #55762 the signature described in the documen...
Opengraph URL: https://github.com/nodejs/node/issues/57355
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dns.lookup signature out of date","articleBody":"### Affected URL(s)\n\nhttps://nodejs.org/docs/latest-v20.x/api/dns.html#dnslookuphostname-options-callback\n\n### Description of the problem\n\nAs seen in issues like: https://github.com/nodejs/node/issues/55762\n\nthe signature described in the documentation is incorrect.\nThe docs describe the signature like this:\n\n- callback \u003cFunction\u003e\n - err \u003cError\u003e\n - address \u003cstring\u003e A string representation of an IPv4 or IPv6 address.\n - family \u003cinteger\u003e 4 or 6, denoting the family of address, or 0 if the address is not an IPv4 or IPv6 address. 0 is a likely indicator of a bug in the name resolution service used by the operating system.\n\nWhile in reality the signature looks like this:\ncallback(err, [{address, family}]);\n\n\n\n\n\n","author":{"url":"https://github.com/vytasgavelis","@type":"Person","name":"vytasgavelis"},"datePublished":"2025-03-07T05:48:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/57355/node/issues/57355"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f8b61b7f-5de1-4ad4-b079-04561b27782f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3F0:1CCE98:B6C200:102B844:6A4D218C |
| html-safe-nonce | a2085e556eb0faf2e3f9ca5e58381a8ef5712eacdcb506714a686797ee4ded6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0YwOjFDQ0U5ODpCNkMyMDA6MTAyQjg0NDo2QTREMjE4QyIsInZpc2l0b3JfaWQiOiI0ODQwNDY5Njk4MTg0MDI4NTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 941504547d4211b4e070aa445ec4fbca2e04724ad3a845ba7f4caa63e2511ec4 |
| hovercard-subject-tag | issue:2902075816 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/57355/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a85813f3a6cb26754f9c88cbb36fd1bd8f238383b4fe1b63fd02f59546e1b682/nodejs/node/issues/57355 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a85813f3a6cb26754f9c88cbb36fd1bd8f238383b4fe1b63fd02f59546e1b682/nodejs/node/issues/57355 |
| og:image:alt | Affected URL(s) https://nodejs.org/docs/latest-v20.x/api/dns.html#dnslookuphostname-options-callback Description of the problem As seen in issues like: #55762 the signature described in the documen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vytasgavelis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width