sudo bash #add an entry in resolv.conf - update ip address as required echo "nameserver 8.8.8.8" >> /etc/resolv.conf #Make the file Immutable; if you want to update the file again later - run chattr -i /etc/resolv.conf to make it mutable again chattr +i /etc/resolv.conf # add an entry in wsl.conf sudo nano /etc/wsl.conf #Add the below lines [boot] systemd=true [network] generateResolvConf = false exit wsl --shutdown wsl #You should observe the changes are now permanent.
Way to Divergence