coreDNS issue with k3s in WSL

Hi,

My k3s runs in my WSL on my Windows machine. Everything works until I connect to my company’s VPN. The coreDNS pod cannot access any DNS server. I think it is because my company blocked them. The only my WSL access to a DNS server is using a local dnsmasq running in a container on my Windows Docker Desktop.

My WSL is able to access my local dnsmasq using 127.0.0.1:5353. But coreDNS cannot use any local DNS. I got a loopback error when trying to set the DNS to 127.0.0.1.

Could someone help me come up with a solution to solve this DNS issue?

Thanks