-
Notifications
You must be signed in to change notification settings - Fork 121
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
Network timeout when top two DNS servers in /etc/resolv.conf are IPv6 addresses #9
Comments
Thanks for the detailed report! I'm testing a workaround to the immediate issue in moby/vpnkit#95, and will follow up on V6 forwarding support. |
We currently read all the 'nameserver' entries out of `resolv.conf`, including the IPv6 and IPv4 entries. However, the forwarding logic in slirp does not handle the IPv6 case yet (primarily due to a lack of testing), and so a user with an IPv6 resolver as the first entry will have forwarding failures. This patch filters for IPv4 resolvers to work around the issue so that if the `resolv.conf` has at least one IPv4 server, it will get picked up and used. This is the minimal patch: we do need to support IPv6 forwarding as well but that will be a bigger change. Reported in docker/for-mac#9. Signed-off-by: Anil Madhavapeddy <anil@docker.com>
We don't have IPv6 support yet, but the workaround has been released in the beta channel. I downloaded beta 24, and edited my DNS server list as above. I then saw:
Note the IPv6 addresses have been filtered out, for now. I was then able to:
IPv6 is on the to-do list but it's queued behind a number of other DNS and VPN fixes. I'll close this issue for now, please do give it a go yourself and re-open if you have problems with the workaround. Feel free to open a separate issue to describe your IPv6 use-cases/requirements too (e.g. is the most important thing to be able to pull images from a registry over IPv6; to expose ports over IPv6 or to have containers directly access the IPv6 internet?) |
@djs55 is there a public issue about IPv6 support in Docker for Mac that one can follow? It's a blocker for us to start using Docker locally for development, as most of our services are IPv6-only. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Actual behavior
Information
Steps to reproduce the behavior
2001:4860:4860::8888
(these are Google's public DNS servers, I imagine the issue would present the same with any v6 servers)2001:4860:4860::8844
8.8.8.8
docker pull busybox
To not see this behaviour:
docker pull busybox
(As far as I can tell, Docker for Mac is only looking at the first two entries in /etc/resolv.conf then it gives up, and for whatever reason it has no access to the v6 internet)
This issue was previously discussed on the forums: https://forums.docker.com/t/error-network-timed-out-while-trying-to-connect-to-index-docker-io/17206
The text was updated successfully, but these errors were encountered: