-
Notifications
You must be signed in to change notification settings - Fork 822
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
DNS lookup not working in WSL2 even after setting wsl.conf and resolv.conf #10978
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! Open similar issues:
Closed similar issues:
|
I have tried all recommendation in the tickets mentioned above but nothing worked
Ping Request Response
I don't see any DNS request on port 53 |
@shilhas who's your resolver? Are you using Sample output with
and a query example:
|
@elsaco It does not look like I have systemd-resolved
|
I have enable systemd on WSL by editing wsl.conf file
resolvectl status still does not provide meaningful output
|
On Ubuntu-22.04
systemd version:
|
/dupe #8365 |
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Windows Version
Microsoft Windows [Version 10.0.19045.3803]
WSL Version
2.0.14.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
wsl
ping google.com
note settings:
cat /etc/wsl.conf
[network]
generateResolvConf = false
cat /etc/resolv.conf
nameserver gateway-ip-address
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 1.1.1.1
nameserver 1.0.0.1
I have also tried with individual ip address of DNS and gateway ip listed above.
ping response each of the above IP address is successful one e.g. shown below
on host machine
Note:
[wsl2] \n swap=0
in%userprofile%\.wslconfig
Expected Behavior
ping google.com
result in
Actual Behavior
ping google.com
result in
ping: google.com: Temporary failure in name resolution
I have many of the solution suggested in stackoverflow and github nothing worked so far.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: