Title: dns.resolveSrv returns ECONNREFUSED on Windows since v24.13.0 (still broken in v25.x and v26.x) · Issue #62326 · nodejs/node · GitHub
Open Graph Title: dns.resolveSrv returns ECONNREFUSED on Windows since v24.13.0 (still broken in v25.x and v26.x) · Issue #62326 · nodejs/node
X Title: dns.resolveSrv returns ECONNREFUSED on Windows since v24.13.0 (still broken in v25.x and v26.x) · Issue #62326 · nodejs/node
Description: Version v24.14.0, v25.8.1 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem dns (c-ares) What steps will reproduce the bug? Run the following script: const dns = require("dns"); dns.resolveSrv("_mongodb._tcp.mongodb.
Open Graph Description: Version v24.14.0, v25.8.1 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem dns (c-ares) What steps will reproduce the bug? Run the following script: const dns = require("dns"); dns.resolveS...
X Description: Version v24.14.0, v25.8.1 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem dns (c-ares) What steps will reproduce the bug? Run the following script: const dns = require("dns"); dn...
Opengraph URL: https://github.com/nodejs/node/issues/62326
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dns.resolveSrv returns ECONNREFUSED on Windows since v24.13.0 (still broken in v25.x and v26.x)","articleBody":"### Version\n\nv24.14.0, v25.8.1\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.26200.0 x64\n```\n\n### Subsystem\n\ndns (c-ares)\n\n### What steps will reproduce the bug?\n\nRun the following script:\n\n```js\nconst dns = require(\"dns\");\n\ndns.resolveSrv(\"_mongodb._tcp.mongodb.\u003cyour-cluster\u003e.mongodb.net\", (err, addresses) =\u003e {\n console.log(err ? `error ${err.code}: ${err.message}` : addresses);\n});\n```\n\nRun with Node.js \u003e= v24.13.0 on Windows.\n\n### How often does it reproduce? Is there a required condition?\n\n100% reproducible on Windows.\n\nNo special conditions required.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe SRV query should resolve successfully and return records.\n\nExample output (Node v24.12.0 and v25.2.1):\n\n```\n[\n {\n name: 'shard-00-00.\u003cyour-cluster\u003e.mongodb.net',\n port: 27017,\n priority: 0,\n weight: 0,\n type: 'SRV'\n },\n {\n name: 'shard-00-01.\u003cyour-cluster\u003e.mongodb.net',\n port: 27017,\n priority: 0,\n weight: 0,\n type: 'SRV'\n },\n {\n name: 'shard-00-02.\u003cyour-cluster\u003e.mongodb.net',\n port: 27017,\n priority: 0,\n weight: 0,\n type: 'SRV'\n }\n]\n```\n\nThis behavior is consistent with:\n- previous Node.js versions\n- Node.js v25.2.1\n- other platforms (tested on Linux)\n\n### What do you see instead?\n\n```\nerror ECONNREFUSED: querySrv ECONNREFUSED _mongodb._tcp.\u003cyour-cluster\u003e.mongodb.net\n```\n\nThis happens consistently even with valid public DNS resolvers configured on the system.\n\n### Additional information\n\nThis appears related to the issue described in #61435 and the fix in #61453 (commit 17b363a66c).\n\nHowever, the problem persists on Windows.\n\nFrom testing:\n\n- Node.js 24:\n - Last known working version: v24.12.0\n - First broken version: v24.13.0+\n\n- Node.js 25:\n - Last known working version: v25.2.1\n - Reproducible in all tested versions up to v25.8.1\n\nThe issue is 100% reproducible and specifically affects SRV resolution (`dns.resolveSrv`).\n\nThe issue does not occur in earlier versions and is therefore a regression.\n\nThis suggests the fix may be incomplete or that the regression was reintroduced.","author":{"url":"https://github.com/niridya","@type":"Person","name":"niridya"},"datePublished":"2026-03-18T19:33:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/62326/node/issues/62326"}
| 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:bd340dec-26e7-482d-7ee7-ca1670290189 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5F2:3DF948:126FB23:194889C:6A4DE3D0 |
| html-safe-nonce | 437faa5f1840510c1a43081d7f108ed9e1b4274a1ce2e93da9c54d3c4565c497 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUYyOjNERjk0ODoxMjZGQjIzOjE5NDg4OUM6NkE0REUzRDAiLCJ2aXNpdG9yX2lkIjoiNDU4NDMwNTQ3NDg0OTg1ODUxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e680ccff31bd5fe8bf1d88ec9d333725fd90f3617d411d838cacf118ff1198de |
| hovercard-subject-tag | issue:4097297799 |
| 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/62326/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d4d2300607b1bc2ea37108b51bd6419711a6ac80f7112484ba58be92dca4c3f2/nodejs/node/issues/62326 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d4d2300607b1bc2ea37108b51bd6419711a6ac80f7112484ba58be92dca4c3f2/nodejs/node/issues/62326 |
| og:image:alt | Version v24.14.0, v25.8.1 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem dns (c-ares) What steps will reproduce the bug? Run the following script: const dns = require("dns"); dns.resolveS... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | niridya |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width