-
Notifications
You must be signed in to change notification settings - Fork 854
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
Name resolution fails with VPN & dnsTunneling #10520
Comments
Mirroring and DNS Tunneling are not yet enabled on that version of Windows (22H2). There should be an OS update in the coming weeks to enable that support. Currently, these new features are only enabled on Windows Insiders Canary builds. Thanks! |
it seems to be enabled in |
/logs |
here you are. |
@shigenobuokamoto it seems many logs are missing can you please run "wsl --shutdown" |
Is this okay? |
@shigenobuokamoto thanks for the quick response, those traces were good we need some additional traces. Can you please do the following? run "wsl --shutdown" |
@CatalinFetoiu |
@shigenobuokamoto thanks. for the names that you try to resolve from WSL, does it work to to resolve them from Windows? Can you try running nslookup <name you want to resolve from WSL" in an admin powershell window? from the logs, we see that Windows receives the DNS request from Linux, but when Windows tries to resolve it on behalf of Linux, it fails. |
@CatalinFetoiu i think.... DNS server when disconnected VPN: at this time, windows queries 192.168.1.1 and successfully, but is it possible that dnsTunneling queries |
@shigenobuokamoto but name “setup.wsk” is resolved using DNS servers 10.22.0.54 and 10.3.0.252 and the requests to those DNS servers time out (likely the VPN drops the requests). "setup.wsk" is resolved using different DNS servers because of a Windows NRPT rule that forces those servers to be used when resolving names ending in ".wsk" from an admin windows powershell, can you please run "nslookup ntp.ubuntu.com", then run "nslookup setup.wsk" and let us know if nslookup works? if nslookup works, can you please do the following? run "wsl --shutdown" |
i see, thank you very much. from windows, nslookup works for both ntp.ubuntu.com and setup.wsk. |
@shigenobuokamoto thanks it seems nslookup is not using the DNS servers configured in NRPT policies the issue is that DNS requests from WSL are using the DNS servers configured in the Windows NRPT policies, and the VPN appears to block those DNS servers. to confirm, can you please do the following? With the VPN disconnected (we expect nslookup commands below to work): In admin powershell, run "Get-DnsClientNrptRule > nrpt_no_vpn.txt" and share nrpt_no_vpn.txt With the VPN connected (we expect nslookup commands below to fail): |
@CatalinFetoiu i forgot that i had specified the DNS server in Add-DnsClientNrptRule. i deleted 10.0.0.0/8 route and the problem went away. i apologize for the trouble. |
@shigenobuokamoto good to hear that the problem was resolved I will close the issue. Let us know if you run into any other problems |
Windows Version
Windows11 22H2 22621.2359
WSL Version
2.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
conditions
[experimental]
networkingMode=mirrored
dnsTunneling=true
access the DNS server directly, can receive a response.
but
inquiry to 127.0.0.42 times out.
such as those that return NXDOMAIN wait for a timeout and take a long time to respond.
no problem if VPN is disconnected.
Expected Behavior
Actual Behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: