202306021051 WSL DNS issues
Name resolution did not work for me out of the box when running Ubuntu on WSL (Windows Subsystem for Linux).
In the file /etc/wsl.conf I had to add:
[network]
generateResolvConf=false
This prevents WSL to override the DNS settings that you will set in the next step.
To manually add DNS name servers, add something like the following to /etc/resolv.conf:
nameserver 8.8.8.8
nameserver 1.1.1.1