-
Notifications
You must be signed in to change notification settings - Fork 533
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
slow DNS resolution failures in the alpine:latest
attached to a non-default bridge network
#313
Comments
Further observations:
Looks like |
We are observing the same. Running Kubernetes 1.5/1.6/1.7 with calico or weave. All have the same problem with alpine images. Switching to another distro like debian with docker image solves our problem. (Happening with Alpine 3.4/3.5/3.6) |
Seems to have resolved by itself -- not happening with the latest Alpine. Thanks anyway :) |
Facing the same issue even on Alpine 3.7 |
Alpine linux is using musl libc to resolve the DNS, it sends both A query and AAAA query concurrently by default. I posted the solution here kubernetes/kubernetes#56903 (comment) hope it can help thanks |
When running an
alpine:latest
container attached to a non-default bridged network, meaning it has the Docker internal DNS enabled, I observe that DNS resolution failures are processed very slowly.Steps to reproduce:
alpine:latest
container attached to this network:strace
-ing this command shows multiple DNS requests and SERVFAIL replies during this process (see the attached file strace.txt ).Software versions:
This does not happen if the default bridge network is used, where /etc/resolv.conf points to 8.8.8.8 and 8.8.4.4.
The text was updated successfully, but these errors were encountered: