-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split DNS problems #11321
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
I think rearranging the name servers breaks other things. I am not sure what is the correct solution. Most of the internal VPN domains resolve properly except for ones ending in .internal. They resolve on the Windows host with the VPN adapter, but not wsl2 with Debian. |
In the end, I made it work using With
This worked for the most part except for With In the end, I installed dnsmasq.
I updated
and changed /etc/resolv.conf to:
I forgot if I had to enable the dnsmasq service but it would be
If it was already running, you have to restart it to load the changed config file:
I tried to bind dnsmasq to Everything now seems to resolve as expected. |
Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues It should create a folder like [WslNetworkingLogs-date_ver.zip] |
hi @LeorGreenberger. thanks for reporting the issue when collecting the logs Chanpreet asked for, please have dnsTunneling set to true and the dnsmasq tool disabled/uninstalled, so that we can troubleshoot why dnsTunneling did not work for your scenario. thanks |
we had a different report of split DNS issues with DNS tunneling - #10680, which was root caused and we are working to fix. the root cause could be similar here |
we have made a fix for DNS tunneling split DNS problems (fixing #10680). Can you please take KB5036980 published in https://support.microsoft.com/en-us/topic/windows-11-version-22h2-update-history-ec4229c3-9c5f-4e75-9d6d-9025ab70fcce, install it and see if the issue still reproduces? Please make sure to have DNS tunneling enabled when testing. If you still encounter issues after installing the KB, please attach networking logs. thanks |
Windows Version
Microsoft Windows [Version 10.0.22631.3155]
WSL Version
2.1.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-2
Distro Version
Debian GNU/Linux 12 (bookworm)
Other Software
No response
Repro Steps
.wslconfig
/etc/wsl.conf:
Expected Behavior
When connected to VPN (Cisco AnyConnect), I expect the VPN nameservers to be listed first followed by LAN nameserver in /etc/resolv.conf
Actual Behavior
The actual generated /etc/resolv.conf is:
When the VPN has an internal domain that also exists publicly, name resolution fails because it tries the LAN/public nameserver first. When I rearrange the nameserver order so that the VPN nameservers are first, everything gets resolved properly.
The Windows host already appears to do this when the VPN adapter (Ethernet3) is connected:
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: