Skip to content

wslc: ensure dns tunneling is disabled with virtioproxy networking mode#40057

Merged
benhillis merged 1 commit intofeature/wsl-for-appsfrom
user/benhill/wslc_disable_dnstunneling
Apr 1, 2026
Merged

wslc: ensure dns tunneling is disabled with virtioproxy networking mode#40057
benhillis merged 1 commit intofeature/wsl-for-appsfrom
user/benhill/wslc_disable_dnstunneling

Conversation

@benhillis
Copy link
Copy Markdown
Member

This change ensures that DNS tunneling is disabled for virtio proxy networking mode. There is currently a bug with DNS over TCP that I am debugging and will enable this functionality when the bug is fixed.

@benhillis benhillis requested a review from a team as a code owner April 1, 2026 02:42
Copilot AI review requested due to automatic review settings April 1, 2026 02:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures DNS tunneling is not used when the VM is operating with VirtioProxy networking, to avoid a known DNS-over-TCP issue, by gating configuration and VirtioProxy behavior in the Windows service/config layers.

Changes:

  • Disables VirtioProxy’s internal DNS-tunneling behavior by no longer setting VirtioNetworkingFlags::DnsTunneling.
  • Tightens config validation to only allow EnableDnsTunneling when NetworkingMode is Nat or Mirrored.
  • Adjusts the early-config message to always forward EnableDnsTunneling (now relying on config validation to gate it).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/windows/service/exe/WslCoreVm.cpp Stops enabling DNS tunneling in the VirtioProxy networking engine and changes how the guest early-config is populated.
src/windows/common/WslCoreConfig.cpp Updates config consistency rules to disallow DNS tunneling outside NAT/Mirrored.

@benhillis benhillis enabled auto-merge (squash) April 1, 2026 13:12
@benhillis benhillis merged commit e5eaeb2 into feature/wsl-for-apps Apr 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants