-
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 not working in WSL2, resolv.conf gets overwritten with symlink to ../run/resolvconf/resolv.conf #4844
Comments
resolv.conf
gets overwritten with symlink to ../run/resolvconf/resolv.conf
Seems like a configuration issue on my end. Now it's just #4285. |
I'm having this same issue, after adding |
I faced the same issue that resolv.conf kept getting generated despite I learned from #5420 (comment) the proper way to get rid of the generated symlinked file. My one-liner after which the resolv.conf started working as expected: (also after WSL2 shutdown) |
Thanks this worked for me. Weirdly earlier I was able to ping google.com and even update the system from official ubuntu mirrors. But for some reason, I was not able ping github.com or any other website. Now doing the above resolved it. |
DNS not working at all in WSL2 after upgrading,
After setting
in
wsl.conf
resolv.conf
keeps getting overwritten with symlink to../run/resolvconf/resolv.conf
The text was updated successfully, but these errors were encountered: