-
Open PowerShell as Administator. Type Get-DnsClientServerAddress (similar to ipconfig /all) Look upon Ethernet. Ignore 0.0.0.0. In my case the only IP is 192.168.1.1
-
In the bash terminal of WSL2: Append following text:
[network]
generateResolvConf = false