yuk7 / AlpineWSL

Alpine Linux based WSL distribution. Supports multi-install. Lightest WSL distribution.
https://git.io/alpwsl
MIT License
541 stars 48 forks source link

slow internet connection #25

Open msh2050 opened 2 years ago

msh2050 commented 2 years ago

I have very slow internet connection I compare it with ubuntu distro...

can I use this solution? source

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
freed00m commented 2 years ago

Hmm sudoing from root user is not necessary.

Also, chattr is not available by default. do

~# apk add e2fsprogs-extra

to get it.

The /etc/wls.conf file seems to be ignored, maybe it is a bug?

The generateResolvConf = false should probably go to resolv conf conf file if there is such equivalent for resolv.conf generator.