My /etc/wsl.conf:
[network]generateResolvConf = false
And yet my /etc/resolv.conf continues to regenerate.I specify:
nameserver 8.8.8.8
Only to find it changed to:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:# [network]# generateResolvConf = falsenameserver 172.29.128.1
Note: I tried the solutions suggested below, none of them helped: