Title: dns.getServers() incorrectly returns 127.0.0.1 when OS DNS is configured to 8.8.8.8 · Issue #62347 · nodejs/node · GitHub
Open Graph Title: dns.getServers() incorrectly returns 127.0.0.1 when OS DNS is configured to 8.8.8.8 · Issue #62347 · nodejs/node
X Title: dns.getServers() incorrectly returns 127.0.0.1 when OS DNS is configured to 8.8.8.8 · Issue #62347 · nodejs/node
Description: Version Current Version: 24.14.0, Same Issue on Every version of nodejs Platform Windows, x64 Subsystem No response What steps will reproduce the bug? Set system DNS to a public resolver (e.g., 8.8.8.8) on Windows. Verify 'ipconfig /all'...
Open Graph Description: Version Current Version: 24.14.0, Same Issue on Every version of nodejs Platform Windows, x64 Subsystem No response What steps will reproduce the bug? Set system DNS to a public resolver (e.g., 8.8...
X Description: Version Current Version: 24.14.0, Same Issue on Every version of nodejs Platform Windows, x64 Subsystem No response What steps will reproduce the bug? Set system DNS to a public resolver (e.g., 8.8...
Opengraph URL: https://github.com/nodejs/node/issues/62347
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dns.getServers() incorrectly returns 127.0.0.1 when OS DNS is configured to 8.8.8.8","articleBody":"### Version\n\nCurrent Version: 24.14.0, Same Issue on Every version of nodejs\n\n### Platform\n\n```text\nWindows, x64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n1. Set system DNS to a public resolver (e.g., 8.8.8.8) on Windows.\n2. Verify 'ipconfig /all' shows 8.8.8.8 as the only DNS server.\n3. Run the following command in a clean terminal:\n node -e \"console.log(require('node:dns').getServers())\"\n4. Observe that it returns ['127.0.0.1'] despite system settings.\n\n\n### How often does it reproduce? Is there a required condition?\n\nAlways (100% of the time) on this specific machine after a PC reset, even after clearing virtual network adapters and setting the Interface Metric for Wi-Fi/Ethernet to 1.\n\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe 'dns.getServers()' method should return the DNS servers configured in the OS network stack (8.8.8.8). It should not default to the loopback address (127.0.0.1) when a valid external DNS is active and prioritized.\n\n\n### What do you see instead?\n\nThe output of `node -e \"console.log(require('node:dns').getServers())\"` is `['127.0.0.1']`. \n\nThis occurs even though `ipconfig /all` confirms the system is using `8.8.8.8` and no local DNS proxy (like Acrylic or Acrylic DNS) is running on port 53.\n\n### Additional information\n\n- I have already tried `netsh winsock reset`, `ipconfig /flushdns`, and `netsh int ip reset`.\n- I manually set the Interface Metric for the active Wi-Fi adapter to 1 to ensure priority.\n- I uninstalled all virtual network adapters (WSL2/Docker/VPN bridges).\n- `nslookup google.com` correctly identifies the server as 8.8.8.8, but Node.js remains stuck on the loopback address.\n- This behavior started immediately after a Windows PC reset.\n","author":{"url":"https://github.com/CycloneAddons","@type":"Person","name":"CycloneAddons"},"datePublished":"2026-03-20T08:29:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/62347/node/issues/62347"}
| 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:feba7058-84d7-59d1-29ef-38011111c61b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9852:3E4802:8F909C:C14AD8:6A4D3E86 |
| html-safe-nonce | 96b5b390f9f84251f0861cd0cab86d977405ebf635be820c6620d3dd2512ddbe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODUyOjNFNDgwMjo4RjkwOUM6QzE0QUQ4OjZBNEQzRTg2IiwidmlzaXRvcl9pZCI6IjEyMjQxNDA4NzMxMzU4OTgyNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d77d00b95c32998a1e3a0d75ef7cf604dbfa4f1a35dbd3b9564c5a70cc63c7d8 |
| hovercard-subject-tag | issue:4106586635 |
| 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/62347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7bc912a965d06c72ce6d0ceb730fd21fa54a73585799116758562520b0d829dc/nodejs/node/issues/62347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7bc912a965d06c72ce6d0ceb730fd21fa54a73585799116758562520b0d829dc/nodejs/node/issues/62347 |
| og:image:alt | Version Current Version: 24.14.0, Same Issue on Every version of nodejs Platform Windows, x64 Subsystem No response What steps will reproduce the bug? Set system DNS to a public resolver (e.g., 8.8... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CycloneAddons |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width