Monday, November 09, 2026

WSL DNS config

Notes for WSL DNS config:
 

$USERPROFILE/.wslconfig

[wsl2]

dnsTunneling=true

networkingMode=nat

autoProxy=true


$ cat -p /etc/resolv.conf

search abc.suffix.com

nameserver 10.10.183.1

nameserver 8.8.8.8


$ cat -p /etc/wsl.conf

[boot]

systemd=true

[network]

generateResolvConf = false