In the network section, set generateResolvConf = false like so:
[network]
generateHosts = true
generateResolvConf = false
Set the nameserver to 8.8.8.8 like so:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 8.8.8.8
update the file /etc/resolv.conf
and add your organization DNS server as a new nameserver. Should look like this:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver x.x.x.x (org/vpn dns server here)
nameserver 8.8.8.8