I am trying to understand dns in docker. I have a bridge network and while running a container in etc/esolv.conf i have 192.168.65.7. except that I am not able to see a network with this subnet neither in docker, neither on my host, neither wsl.
I am running wsl on my windows via docker desktop.
in wsl terminal: cat /etc/resolv.conf I have nameserver 10.255.255.254
192.168.65.7: This is Docker Desktop’s internal DNS server for containers. It’s not a real network you can see, it’s handled virtually by Docker.
10.255.255.254: This is WSL’s internal DNS, which forwards requests to Windows. Also virtual, not shown in normal network tools.
Both are virtual DNS proxies, created automatically by Docker Desktop and WSL, that’s why you can’t find them on your host or with Docker network commands.