Open AmazingMrX opened 4 months ago
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Multiple log files found, using: https://github.com/user-attachments/files/16357003/WslLogs-2024-07-23_22-35-56.zip
.wslconfig found
Detected appx version: 2.3.11.0
@AmazingMrX thanks for reporting the issue
this might be a duplicate of https://github.com/microsoft/WSL/issues/11022
if you disconnect from the VPN, are you able to resolve names ending in ".local" ?
@AmazingMrX thanks for reporting the issue
this might be a duplicate of #11022
if you disconnect from the VPN, are you able to resolve names ending in ".local" ?
Yes a disconnected VPN resolves the host names successfully.
However, my configuration does not utilize mDNS. This is a local nameserver built into an AsusWRT Router.
Also, the proposed dnsTunneling=false
solution does not work in this case. I am only able to resolve some hosts in this configuration, not all names function under these conditions.
we have updated the docs to include details about how to resolve .local names in WSL. Please refer to https://learn.microsoft.com/en-us/windows/wsl/troubleshooting#resolve-local-names-in-wsl
let us know if you have any questions
we have updated the docs to include details about how to resolve .local names in WSL. Please refer to https://learn.microsoft.com/en-us/windows/wsl/troubleshooting#resolve-local-names-in-wsl
let us know if you have any questions
This information only applies to multicast DNS (mDNS) configurations. As was previously indicated, this network does not use multicast DNS. I have a single domain name server operating in a traditional unicast DNS configuration. To reiterate, there is an actual domain name server providing name resolution for these local IPs.
This is why name resolution works when the VPN is disabled.
The .local domain was arbitrarily selected for my use case as it's a common choice for Local Networks. The mDNS protocol likely makes this selection for similar reasons.
To further clarify: This name resolution issue is unique to WSL2 and only occurs when Proton VPN is connected. During this time, Command Prompt and Powershell terminals (on the same Windows Machine as the WSL2 instance) can and will correctly resolve these names. When the VPN connection is disabled, as described in the original post (above), WSL2 regains the ability to resolve these names as well.
Upgrading to WSL 2.3.17.0 provides no change in the originally described behavior. The 10 Repro Steps still work as described.
@AmazingMrX thanks for following up and clarifying the deployment you are using
could you please collect separate WslNetworkingLogs for both the working and non-working cases?
With Proton VPN connected: start networking logs in Linux, run ping router.local confirm ping does not work stop networking logs
With Proton VPN disconnected: start networking logs in Linux, run ping router.local confirm ping works stop networking logs
thanks!
Is there some problem with the combined log provided? The provided steps were followed in order.
it looks like the WslNetworkingLogs zip you attached in the initial comment is missing the "logs.etl" file, which is needed to investigate
could you please try collecting networking logs again and double check if the zip has a "logs.etl" inside it?
thanks
Windows Version
Microsoft Windows [Version 10.0.22631.3880]
WSL Version
2.3.11.0
Are you using WSL 1 or WSL 2?
Kernel Version
6.6.36.3-1
Distro Version
Ubuntu 22.04
Other Software
ProtonVPN v3.2.12
Repro Steps
nslookup
with a site on your internal network. E.g.:router.local
router.local
nslookup
with a site on the internet. E.g.:www.google.com
www.google.com
Expected Behavior
nslookup router.local
should return an output similar to what it does forwww.google.com
forrouter.local
, with at least one Name and Address pair:ping -c 5 router.local
should return an output similar to what it does forwww.google.com
forrouter.local
, with at least one successful ping attempt even if all packets are lost:Actual Behavior
nslookup router.local
returns the following output forrouter.local
when the VPN connection is enabled:ping -c 5 router.local
returns the following output forrouter.local
when the VPN connection is enabled:These commands provide expected output only when the VPN is disconnected or when a site from the internet is chosen.
Diagnostic Logs
WslLogs-2024-07-23_22-35-56.zip WslNetworkingLogs-2024-07-23_22-35-25.zip