Container networking | Docker Documentation
docs.docker.com › config › containersBy default, a container inherits the DNS settings of the host, as defined in the /etc/resolv.conf configuration file. Containers that use the default bridge network get a copy of this file, whereas containers that use a custom network use Docker’s embedded DNS server, which forwards external DNS lookups to the DNS servers configured on the host.
What is the use of an embedded DNS server in Docker ...
www.quora.com › What-is-the-use-of-an-embedded-DNSThe DNS server probably doesn't know the answer either, so it asks a more authoritative server. In the basic case, this is a root server. Your DNS server is pre-seeded with the addresses of the root servers. The root servers are critical to the operation of DNS. Without them, the Internet would fail to function. Anyhow, your computer asks your DNS server, which in turn asks the root server. The root server returns the authoritative server for the TLD.