{"action":"created","issue":{"url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/34","labels_url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/34/comments","events_url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/34/events","html_url":"https://github.com/tonistiigi/dnsdock/issues/34","id":99015637,"number":34,"title":"dig dnsdocker.docker works, curl dnsdocker.docker doesn't","user":{"login":"oliverwilkie","id":10522493,"avatar_url":"https://avatars.githubusercontent.com/u/10522493?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverwilkie","html_url":"https://github.com/oliverwilkie","followers_url":"https://api.github.com/users/oliverwilkie/followers","following_url":"https://api.github.com/users/oliverwilkie/following{/other_user}","gists_url":"https://api.github.com/users/oliverwilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverwilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverwilkie/subscriptions","organizations_url":"https://api.github.com/users/oliverwilkie/orgs","repos_url":"https://api.github.com/users/oliverwilkie/repos","events_url":"https://api.github.com/users/oliverwilkie/events{/privacy}","received_events_url":"https://api.github.com/users/oliverwilkie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-04T17:10:53Z","updated_at":"2015-09-04T07:19:28Z","closed_at":null,"body":"Hi\r\n\r\nFrom one container I am able to ping another container but any attempt to do a higher-level request such as `curl` fails citing that it 'could not resolve host'. Any theories/suggestions why? Both containers are based off Ubuntu 14.04\r\n\r\n\r\n```\r\nroot@ac69fc055883:/app# dig dnsdock.docker\r\n\r\n; <<>> DiG 9.9.5-3ubuntu0.4-Ubuntu <<>> dnsdock.docker\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35804\r\n;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0\r\n;; WARNING: recursion requested but not available\r\n\r\n;; QUESTION SECTION:\r\n;dnsdock.docker.\t\t\tIN\tA\r\n\r\n;; ANSWER SECTION:\r\ndnsdock.docker.\t\t0\tIN\tA\t172.17.3.48\r\n\r\n;; Query time: 1 msec\r\n;; SERVER: 172.17.42.1#53(172.17.42.1)\r\n;; WHEN: Tue Aug 04 17:16:58 UTC 2015\r\n;; MSG SIZE  rcvd: 62\r\n\r\n```\r\nBut when I curl...\r\n```\r\nroot@fab381760c0e:/app# strace -o /tmp/wtf -fF curl -v http://dnsdock.docker/services\r\n* Hostname was NOT found in DNS cache\r\n* Could not resolve host: dnsdock.docker\r\n* Closing connection 0\r\ncurl: (6) Could not resolve host: dnsdock.docker\r\n```"},"comment":{"url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/comments/137663796","html_url":"https://github.com/tonistiigi/dnsdock/issues/34#issuecomment-137663796","issue_url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/34","id":137663796,"user":{"login":"bersace","id":542613,"avatar_url":"https://avatars.githubusercontent.com/u/542613?v=3","gravatar_id":"","url":"https://api.github.com/users/bersace","html_url":"https://github.com/bersace","followers_url":"https://api.github.com/users/bersace/followers","following_url":"https://api.github.com/users/bersace/following{/other_user}","gists_url":"https://api.github.com/users/bersace/gists{/gist_id}","starred_url":"https://api.github.com/users/bersace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bersace/subscriptions","organizations_url":"https://api.github.com/users/bersace/orgs","repos_url":"https://api.github.com/users/bersace/repos","events_url":"https://api.github.com/users/bersace/events{/privacy}","received_events_url":"https://api.github.com/users/bersace/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T07:19:28Z","updated_at":"2015-09-04T07:19:28Z","body":"Hmm, looks like we get false NXDOMAIN. Maybe just a fix of #32 to actually get NOERROR.\r\n\r\nNote that we override service name with DNSDOCK_ALIAS. Maybe #32 doesn't handle this case ?"}}