-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huge primary DNS server timeout in overlay networks #1361
Comments
@arteal For overlay and custom bridge networks container's resolv.conf has only the Docker DNS server's IP 127.0.0.11. Its part of the Docker daemon and always available. When the client sends an external query embedded server forwards it to the configured nameservers. By default Note that for real applications there might experience such large delay because not all 3 records are queried typically and also some apps query A & AAAA in parallel. |
This "liveness" monitoring will be cool. |
I met this problem too.And after the container starting up a day later, seems can not resolve outside domain by just using DNS of 127.0.0.11, I have to add name server manually into /etc/resolv.conf. --dns is useless in swarm env. My docker version is just the same as above. swarm version is v1.2.4-rc2. BTW, I use zookeeper. It lost about 25% in ping overly node ip address. But in some reasons it back to normal, and then sometimes it crashes. |
@arteal It has been detected that this issue has not received any activity in over 6 months. Can you please let us know if it is still relevant:
Thank you! |
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Containers are running on QEMU virtual machines, but this is not relevant here.
Results are same when I specify --dns option to docker daemon even when using default (let docker read /etc/resolv.conf) on docker host
Steps to reproduce the issue:
[root@ctrl1.dev ~]# time host www.google.com
www.google.com has address 172.217.16.100
www.google.com has IPv6 address 2a00:1450:4014:80b::2004
real 0m3.087s
user 0m0.012s
sys 0m0.008s
[root@ctrl1.dev ~]# docker exec -t -i redis1 bash -c 'time host www.google.com'
www.google.com has address 172.217.16.100
www.google.com has IPv6 address 2a00:1450:4014:80b::2004
real 0m12.055s
user 0m0.008s
sys 0m0.004s
Container with default (bridge) network works fine :
root@848f9f8e5478:/# time host www.google.com
www.google.com has address 172.217.16.100
www.google.com has IPv6 address 2a00:1450:4014:80b::2004
real 0m3.019s
user 0m0.004s
sys 0m0.008s
Describe the results you received:
Fallback to secondary server take too much time to proceed and I can't use NSCD here because hostnames inside overlay network will get cached too (or not ?)
Describe the results you expected:
Fallback to secondary takes same time as native Linux resolver
The text was updated successfully, but these errors were encountered: