{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/28573","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/28573/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/28573/comments","events_url":"https://api.github.com/repos/docker/docker/issues/28573/events","html_url":"https://github.com/docker/docker/issues/28573","id":190252844,"number":28573,"title":"DNS resolution failure on Docker for Mac with IPv6 nameservers","user":{"login":"chrismoos","id":175192,"avatar_url":"https://avatars.githubusercontent.com/u/175192?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismoos","html_url":"https://github.com/chrismoos","followers_url":"https://api.github.com/users/chrismoos/followers","following_url":"https://api.github.com/users/chrismoos/following{/other_user}","gists_url":"https://api.github.com/users/chrismoos/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismoos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismoos/subscriptions","organizations_url":"https://api.github.com/users/chrismoos/orgs","repos_url":"https://api.github.com/users/chrismoos/repos","events_url":"https://api.github.com/users/chrismoos/events{/privacy}","received_events_url":"https://api.github.com/users/chrismoos/received_events","type":"User","site_admin":false},"labels":[{"id":381838255,"url":"https://api.github.com/repos/docker/docker/labels/platform/desktop","name":"platform/desktop","color":"F6FBFF","default":false},{"id":375714123,"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-18T07:23:11Z","updated_at":"2016-11-18T11:57:36Z","closed_at":"2016-11-18T11:57:36Z","body":"**Description**\r\n\r\nIf the OS X network settings have an IPv6 DNS server in the **DNS Servers** list then all DNS queries will fail (timeout) in docker containers. Even if there are valid IPv4 DNS server listed, the presence of a single IPv6 server causes resolution to fail.\r\n\r\nA simple workaround for this issue (besides manually overriding your DNS settings on the Mac) is to connect to Moby and force DNS servers in the docker daemon:\r\n\r\nOpen ``/etc/init.d/docker`` and add the ``--dns`` flag:\r\n\r\n```bash\r\ncase \"$(mobyplatform)\" in\r\n        windows|mac)\r\n                DOCKER_OPTS=\"${DOCKER_OPTS} --swarm-default-advertise-addr=eth0 --dns 8.8.8.8 --dns 8.8.4.4\"\r\n                ;;\r\nesac\r\n```\r\n\r\nThen run\r\n\r\n```bash\r\n$ service docker restart\r\n```\r\n\r\n**Steps to reproduce the issue:**\r\n1. Add an IPv6 nameserver and an IPv4 nameserver to your network settings.\r\n2. Run a Docker container and try to ping a host.\r\n\r\n**Describe the results you received:**\r\n\r\nFailure to use DNS in Docker container.\r\n\r\n**Describe the results you expected:**\r\n\r\nDNS functions normally.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nIt seems like probably others have ran into this issue (possibly unknowingly) in #24344.\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        Thu Oct 27 00:09:21 2016\r\n OS/Arch:      darwin/amd64\r\n Experimental: true\r\n\r\nServer:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        Thu Oct 27 00:09:21 2016\r\n OS/Arch:      linux/amd64\r\n Experimental: true\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 113\r\n Running: 1\r\n Paused: 0\r\n Stopped: 112\r\nImages: 1149\r\nServer Version: 1.12.3\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 1298\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: host bridge null overlay\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: seccomp\r\nKernel Version: 4.4.30-moby\r\nOperating System: Alpine Linux v3.4\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 4\r\nTotal Memory: 1.951 GiB\r\nName: moby\r\nID: TB4S:V22M:Y2IP:IBBK:MJO6:DHX5:LEQ2:NAGC:BRX6:H5AI:6HR4:NMAI\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): true\r\n File Descriptors: 18\r\n Goroutines: 36\r\n System Time: 2016-11-18T07:18:08.844111745Z\r\n EventsListeners: 0\r\nNo Proxy: *.local, 169.254/16\r\nUsername: chris\r\nRegistry: https://index.docker.io/v1/\r\nExperimental: true\r\nInsecure Registries:\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/261515576","html_url":"https://github.com/docker/docker/issues/28573#issuecomment-261515576","issue_url":"https://api.github.com/repos/docker/docker/issues/28573","id":261515576,"user":{"login":"justincormack","id":482364,"avatar_url":"https://avatars.githubusercontent.com/u/482364?v=3","gravatar_id":"","url":"https://api.github.com/users/justincormack","html_url":"https://github.com/justincormack","followers_url":"https://api.github.com/users/justincormack/followers","following_url":"https://api.github.com/users/justincormack/following{/other_user}","gists_url":"https://api.github.com/users/justincormack/gists{/gist_id}","starred_url":"https://api.github.com/users/justincormack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justincormack/subscriptions","organizations_url":"https://api.github.com/users/justincormack/orgs","repos_url":"https://api.github.com/users/justincormack/repos","events_url":"https://api.github.com/users/justincormack/events{/privacy}","received_events_url":"https://api.github.com/users/justincormack/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T11:57:36Z","updated_at":"2016-11-18T11:57:36Z","body":"Please can you open Docker for Mac specific issues on https://github.com/docker/for-mac/issues not here. I believe this is a known issue, fixed in master at least, but you will get correct information there."}}
{"actor":{"display_login":"justincormack"}}