Skip to content

Commit 3a62f3f

Browse files
author
David Karlsson
committed
engine: external ipv6 dns server race condition
Signed-off-by: David Karlsson <david.karlsson@docker.com>
1 parent 0061342 commit 3a62f3f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

network/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,23 @@ as follows:
120120
2. The container uses the first response returned by any of the nameservers.
121121
Even if the first response is `NXDOMAIN`, or similar.
122122
123+
### IPv6 name resolution
124+
125+
The embedded DNS server handles both IPv4 and IPv6 name resolution. However,
126+
there is a caveat in name resolution for IPv6.
127+
128+
Any IPv6 addresses specified in the `/etc/resolv.conf` file on the host system
129+
get copied over to the `/etc/resolv.conf` file in containers that you run.
130+
131+
For containers running on musl libc (Alpine Linux), hostname resolution might
132+
sporadically fail if the external IPv6 DNS server wins the race condition
133+
against the embedded DNS server.
134+
135+
It's rare that the external DNS server is faster than the embedded one. But
136+
things like garbage collection, or large numbers of concurrent DNS requests,
137+
can result in a roundtrip to the external server be faster than the local
138+
resolution, on some occasions.
139+
123140
### Custom hosts
124141
125142
Custom hosts, defined in `/etc/hosts` on the host machine, aren't inherited by containers.

0 commit comments

Comments
 (0)