This script fixes /etc/resolv.conf to address an issue where DNS is not updated in WSL. Refer to microsoft/WSL#1350 for more information. If the 'ed' command is not found, install it manually. (Ex: 'sudo apt-get install ed')
- Connect to the VPN.
- Run this script right admin rights from the WSL prompt.
- Test nslookup from the WSL prompt if the script runs successfully.