Skip to content

deps: c-ares: cherry-pick 8ba37af8e3fb#64110

Open
Renegade334 wants to merge 1 commit into
nodejs:mainfrom
Renegade334:cares-win-dns
Open

deps: c-ares: cherry-pick 8ba37af8e3fb#64110
Renegade334 wants to merge 1 commit into
nodejs:mainfrom
Renegade334:cares-win-dns

Conversation

@Renegade334

@Renegade334 Renegade334 commented Jun 24, 2026

Copy link
Copy Markdown
Member

Fixes the OS's DNS servers list being ignored on Windows since #60997. This patch landed in c-ares in February, but with no sign of an imminent release, it's probably worth cherry-picking this; the impact is fairly significant.

Fixes: #62347

Original commit message:

    Fixes nodejs#1056

    The commit
    c-ares/c-ares@1d1b3d4
    refactored the function to use wide strings, but didn't touch this
    check. Because an empty wide string would now be size 2 and not 1, the
    empty string would go on and cause the DNS domain list to be replaced
    with nothing.

    Signed-off-by: @dankmeme01

Refs: c-ares/c-ares@8ba37af
@nodejs-github-bot

Copy link
Copy Markdown
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 Jun 24, 2026
@Renegade334 Renegade334 added lts-watch-v22.x PRs that may need to be released in v22.x lts-watch-v24.x PRs that may need to be released in v24.x labels Jun 24, 2026
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. lts-watch-v22.x PRs that may need to be released in v22.x lts-watch-v24.x PRs that may need to be released in v24.x 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

3 participants