Does anybody know a way to query the embedded dns server that the docker daemon uses. I\'m experimenting with packetbeats and it would be useful if I could replace docker ip add
Another way would be to use docker-dns. It's a docker container that exposes a dns server that resolves the docker containers.
Running it is as simple as
docker run -d --name dns -v /var/run/docker.sock:/docker.sock phensley/docker-dns