Repository navigation
Need help troubleshooting DNS traffic between Windows 11 and WSL2 (Mirrored Networking) #42341
Unanswered
lakshman poudel (lakshMan-git00)
asked this question in
Q&A
Replies: 1 comment
|
The reason port 53 times out while port 53535 works is that Windows has host-level services intercepting or filtering port 53 on the physical network adapters before incoming packets can be mirrored into the WSL adapter. In Windows 11, the native netstat -ano | findstr :53
Get-Process -Id (Get-NetUDPEndpoint -LocalPort 53).OwningProcessUsually PID 4 (System) or To make AdGuard in WSL2 accessible as your LAN DNS in mirrored mode:
Get-NetFirewallRule -DisplayName "*WSL*" | Where-Object { $_.LocalPort -eq 53 }
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to configure AdGuard Home in WSL2 Ubuntu to provide local DNS for devices on my home network.
My setup:
Windows 11 (Build 26300.10075)
WSL2 Ubuntu (2.6.3.0)
WSL2 Mirrored Networking enabled
Docker Desktop
AdGuard Home running inside WSL2
TP-Link Archer AX12 router
LAN subnet: 192.168.0.0/24
Laptop/WSL IP: 192.168.0.10
The problem:
AdGuard Home works correctly inside WSL2. DNS rewrites resolve successfully using:
dig @192.168.0.10 clip.home.arpa
AdGuard is listening on UDP/TCP port 53, and the required Windows Hyper-V firewall inbound rules are enabled.
However, DNS queries from Android and other LAN devices to 192.168.0.10:53 time out.
What I've discovered:
Android can successfully reach WSL2 on UDP port 53535.
The same Android device can access my Nginx service on TCP port 80.
Windows pktmon confirms DNS packets reach the Wi-Fi adapter.
Packets are subsequently dropped by Windows TCP/IP IPv4 component (tcpip.sys, component 103).
The reported drop reason is INET: transport endpoint was not found / Port unreachable.
WSL2 tcpdump never sees these DNS packets, even when AdGuard is stopped and a temporary Python UDP listener is bound to port 53.
Windows Hyper-V firewall rules for both UDP and TCP port 53 are already configured.
My question:
Is this a known limitation or bug with WSL2 mirrored networking when exposing DNS port 53 to the LAN?
Could this be related to Windows TCP/IP endpoint handling, Windows Filtering Platform (WFP), SharedAccess (ICS), or another networking component?
Has anyone successfully hosted AdGuard Home or Pi-hole inside WSL2 mirrored networking and exposed standard DNS port 53 to other LAN devices?
I'm looking for a solution that doesn't require changing my existing Docker Compose configuration or disabling Windows Firewall.
Any suggestions, similar experiences, or technical explanations would be greatly appreciated!
All reactions