Docker Community Forums

Share and learn in the Docker community.

Docker Embedded DNS

Is it possible to configure docker’s embedded DNS to be authoritative for the docker networks? Would like name lookups for non-started named containers to fail within docker and not be forwarded onto the “real” DNS.
Disabling looks up to external DNS completely is not a long-term option.

--dns-opt, --dns-search, and --dns did not really help.
Does anyone has a pointer to something that could help?
Did anyone experienced similar issues?
Should a skydns or something else be used to avoid these issues?

Honnestly, I believe no body is using embedded DNS really. I tried many times but it’s too “magic” with poor documentation.

I suggest you to use an external DNS such as sky, consul etc…