Docker Community Forums

Share and learn in the Docker community.

DNS route to private network namespace? (i.e. route from host to .networkname)

dns

(Anthony Oliver) #1

Is there a way for my host system to have access to containers private network DNS? For instance if I create a docker network called testnet, then I launch containers, then network connect testnet containers, from within the container I can do something like ping container1.testnet. It looks like resolv.conf points to 127.0.0.11. It there a way on my hosts system to allow something like that routing method to work?

I know that there is an embedded DNS server and I can point to say outside DNS servers, but I’m basically trying to do a lookup from the outside in.