-
Notifications
You must be signed in to change notification settings - Fork 836
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
WSL 2.0.9 update breaks DNS resolution and prevents connectivity including pings and downloads #10900
Comments
I've followed the workaround suggested in this comment and #10494 (comment) and it appears to have resolved the DNS resolution problem for now. To summarize, modifying the |
Hi. Can you please collect networking logs by following the instructions below? |
Hi @chanpreetdhanjal I am having similar issues, here are the attached logs |
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 @chanpreetdhanjal sorry here are the network logs |
@lancechant thanks for attaching the logs. It looks like the IP of the WSL NAT vNIC got deleted and now the vNIC has a different IP than what Linux expects (Linux will use as DNS server and default gateway an IP that is no longer on the vNIC, causing the loss of connectivity). Can you please do the following to collect additional diagnostics? Also, please run the following commands in an admin powershell window and attach "hns_events.log" to the issue
Additionally, can you try setting networkingMode=mirrored in the wslconfig file and let us know if the issue still reproduces? Thanks |
Hi @CatalinFetoiu the issue I had seems to be fixed in 2.0.14. Also if I am correct the networkingMode=mirrored isn't available on windows 10? |
@lancechant thanks. In case you hit the issue again, please collect a new set of logs using command you can ignore my instructions about collecting "hns_events.log", as that file is automatically collected by the latest version of the script Regarding mirrored mode - you are correct, it is not available on Windows 10 |
closing since the issue did not reproduce. please open a separate issue if you are still encountering the problem. thanks |
Here is how to fix the issue : Disable then enable the wsl feature . |
Windows Version
Microsoft Windows [version 10.0.22621.2715]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Debian 11
Other Software
VSCode
Version: 1.85.0 (user setup)
Commit: af28b32d7e553898b2a91af498b1fb666fdebe0c
Date: 2023-12-06T20:48:09.019Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621
Repro Steps
Notice all DNS-related activities are not functioning, including:
curl -m 5 -v https://microsoft.com
.8.8.8.8
.Expected Behavior
WSL should resolve DNS requests and allow for standard internet connectivity for downloads and responses to pings to known IPs, consistent with pre-update functionality.
Actual Behavior
After the update to WSL version 2.0.9, the subsystem fails to resolve DNS requests. This issue is highlighted by the inability to use curl for downloads, connect to external services, or even ping external IP addresses, such as Google's public DNS at
8.8.8.8
. The issue persists even after updating to WSL version 2.0.14, with no rollback options available.Please note i don't have VPN or Proxy enabled.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: