- find out your nameserver in the vpn/intranet by opening powershell and writing
nslookup
PS C:\Users\niderhof> nslookup
Standardserver: S4DE4ZSYDIEE123.abc-sa.xxxxx.xyz
Address: 66.66.666.66 <--------
that is the nameserver you want WSL to use also.
- execute this: (replace with real value you obtained on your machine)
sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 66.66.666.66" > /etc/resolv.conf'
sudo chattr +i /etc/resolv.conf
then sudo vim /etc/wsl.conf
and edit as follows:
[network]
generateResolvConf = false
restart.