Last active
September 29, 2024 12:04
-
-
Save lukasondrejka/27dd13318501ecc48b865d4ceaf02888 to your computer and use it in GitHub Desktop.
WSL networking fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm /etc/resolv.conf | |
sudo bash -c 'echo "nameserver 1.1.1.1" > /etc/resolv.conf' | |
sudo bash -c 'echo "[network]" > /etc/wsl.conf' | |
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf' | |
sudo chattr +i /etc/resolv.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/microsoft/WSL/issues/7254