Skip to content

Instantly share code, notes, and snippets.

@michalkortas
Last active October 15, 2021 10:03
Show Gist options
  • Save michalkortas/be5cfd80ecce1efbaf86c9098a87c30c to your computer and use it in GitHub Desktop.
Save michalkortas/be5cfd80ecce1efbaf86c9098a87c30c to your computer and use it in GitHub Desktop.
slow network connection on WLS2
Run this commands on your WSL
sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 8.8.8.8" > /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