Skip to content

deps: ignore loopback interface in c-ares on Windows#62413

Open
kairosci wants to merge 1 commit intonodejs:mainfrom
kairosci:fix/dns-get-servers-loopback
Open

deps: ignore loopback interface in c-ares on Windows#62413
kairosci wants to merge 1 commit intonodejs:mainfrom
kairosci:fix/dns-get-servers-loopback

Conversation

@kairosci
Copy link

@kairosci kairosci commented Mar 23, 2026

This PR modifies deps/cares to ignore DNS servers reported by the loopback interface on Windows.
This prevents dns.getServers() from returning 127.0.0.1 when it is not explicitly configured on a physical interface.

Fixes: #62347

For code changes:

  • Include tests for any bug fixes or new features.
  • Update documentation if relevant.
  • Ensure that make -j4 test (UNIX), or vcbuild test (Windows) passes.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/net
  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added cares Issues and PRs related to the c-ares dependency or the cares_wrap binding. dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Mar 23, 2026
@kairosci
Copy link
Author

Also proposed in c-ares/c-ares#1095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cares Issues and PRs related to the c-ares dependency or the cares_wrap binding. dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dns.getServers() incorrectly returns 127.0.0.1 when OS DNS is configured to 8.8.8.8

2 participants