Podman Desktop on Windows - DNS resolver problem

Recently, I had an opportunity to give Podman Desktop on Windows 11 a try. Podman Desktop is an open-source alternative to Docker Desktop. It is based on WSL2.

After installing Podman Desktop, I have encountered strange DNS resolver error, which could not reach DNS resolver and resolve any DNS entry. At first, I thought that it might be related with a (corporate) firewall settings on a notebook but I didn't have permissions to disable it or adjust accordingly.

I have resolved it with quick workaround by setting manually DNS resolver in /etc/resolv.conf.

After checking WSL2 configuration options, I have updated my setup with the following configuration:

[wsl2]
dnsTunneling=true
dnsProxy=false

More WSL2 configuration options can be found at https://learn.microsoft.com/en-us/windows/wsl/wsl-config