Refresh WSL container with host DNS settings.
- WSL 2
- Powershell
- Copy force_dns_refresh to your user home.
- Add this to your .bashrc
if [ -f ~/force_dns_refresh.sh ]; then
. ~/force_dns_refresh.sh
fi
When you enable or disable your VPN:
force_dns_refresh