{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/1470","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/1470/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/1470/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/1470/events","html_url":"https://github.com/hashicorp/consul/issues/1470","id":120449926,"number":1470,"title":"DNS queries fail for type AAAA","user":{"login":"shore","id":801275,"avatar_url":"https://avatars.githubusercontent.com/u/801275?v=3","gravatar_id":"","url":"https://api.github.com/users/shore","html_url":"https://github.com/shore","followers_url":"https://api.github.com/users/shore/followers","following_url":"https://api.github.com/users/shore/following{/other_user}","gists_url":"https://api.github.com/users/shore/gists{/gist_id}","starred_url":"https://api.github.com/users/shore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shore/subscriptions","organizations_url":"https://api.github.com/users/shore/orgs","repos_url":"https://api.github.com/users/shore/repos","events_url":"https://api.github.com/users/shore/events{/privacy}","received_events_url":"https://api.github.com/users/shore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T17:37:48Z","updated_at":"2015-12-04T19:43:05Z","closed_at":null,"body":"Hi,\r\nI'm trying to use consul as a primary resolver and I see SRV records resolve correctly, but I can't get AAAA queries to work.  Cluster membership looks like this:\r\n```\r\n# consul members\r\nNode            Address           Status  Type    Build  Protocol  DC\r\nconsul001       [fd00::500]:8301  alive   server  0.5.2  2         dc4-sea\r\nconsul003       [fd00::502]:8301  alive   server  0.5.2  2         dc4-sea\r\nconsul002       [fd00::501]:8301  alive   server  0.5.2  2         dc4-sea\r\nprometheus      [fd00::237]:8301  alive   client  0.5.2  2         dc4-sea\r\n```\r\nOn the client:\r\n```\r\n$ cat /etc/resolv.conf\r\nnameserver fd00::500\r\n```\r\n\r\nTesting with dig:\r\nFetch SRV record:\r\n```\r\n$ dig devCluster.prometheus.service.consul SRV\r\n\r\n; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.4 <<>> devCluster.prometheus.service.consul SRV\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6353\r\n;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\r\n\r\n;; QUESTION SECTION:\r\n;devCluster.prometheus.service.consul. IN SRV\r\n\r\n;; ANSWER SECTION:\r\ndevCluster.prometheus.service.consul. 0 IN SRV  1 1 9090 prometheus.node.dc4-sea.consul.\r\n\r\n;; ADDITIONAL SECTION:\r\nprometheus.node.dc4-sea.consul. 0 IN    AAAA    fd00::237\r\n\r\n;; Query time: 2 msec\r\n;; SERVER: fd00::500#53(fd00::500)\r\n;; WHEN: Fri Dec  4 17:10:58 2015\r\n;; MSG SIZE  rcvd: 198\r\n```\r\nFetch that AAAA record:\r\n```\r\n$ dig prometheus.node.dc4-sea.consul AAAA\r\n\r\n; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.4 <<>> prometheus.node.dc4-sea.consul AAAA\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10878\r\n;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0\r\n\r\n;; QUESTION SECTION:\r\n;prometheus.node.dc4-sea.consul.        IN      AAAA\r\n\r\n;; Query time: 0 msec\r\n;; SERVER: fd00::500#53(fd00::500)\r\n;; WHEN: Fri Dec  4 17:11:16 2015\r\n;; MSG SIZE  rcvd: 48\r\n```\r\nTry again with type ANY:\r\n```\r\n$ dig prometheus.node.dc4-sea.consul ANY\r\n\r\n; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.4 <<>> prometheus.node.dc4-sea.consul ANY\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31766\r\n;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0\r\n\r\n;; QUESTION SECTION:\r\n;prometheus.node.dc4-sea.consul.        IN      ANY\r\n\r\n;; ANSWER SECTION:\r\nprometheus.node.dc4-sea.consul. 0 IN    AAAA    fd00::237\r\n\r\n;; Query time: 1 msec\r\n;; SERVER: fd00::500#53(fd00::500)\r\n;; WHEN: Fri Dec  4 17:11:20 2015\r\n;; MSG SIZE  rcvd: 106\r\n```\r\nDNS logs on the server (fd00::500):\r\n```\r\n2015/12/04 17:11:23 [DEBUG] dns: request for {devCluster.prometheus.service.consul. 33 1} (1.648168ms)\r\n2015/12/04 17:11:41 [DEBUG] dns: request for {prometheus.node.dc4-sea.consul. 28 1} (83.155µs)\r\n2015/12/04 17:11:45 [DEBUG] dns: request for {prometheus.node.dc4-sea.consul. 255 1} (977.941µs)\r\n```\r\n\r\nI can work around this in my own code (though stdlib doesn't support ANY queries), but 3rd-party tools fail too:\r\n```\r\n$ curl -gsS 'http://prometheus.node.dc4-sea.consul:9090/status'\r\ncurl: (6) Couldn't resolve host 'prometheus.node.dc4-sea.consul'\r\n```\r\n```\r\n$ curl -gsS 'http://fd00::237:9090/status' | head\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n  <head>\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n    <title>Prometheus Time Series Collection and Processing Server</title>\r\n    <script src=\"/static/vendor/js/jquery.min.js\"></script>\r\n    <script src=\"/static/vendor/bootstrap-3.3.1/js/bootstrap.min.js\"></script>\r\n\r\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"/static/vendor/bootstrap-3.3.1/css/bootstrap.min.css\">\r\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"/static/css/prometheus.css\">\r\n```\r\n\r\nI see that the docs for the DNS interface only demonstrate ANY and SRV records.  Is consul intentionally not handling AAAA records?  Am I missing something obvious?"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/162063310","html_url":"https://github.com/hashicorp/consul/issues/1470#issuecomment-162063310","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/1470","id":162063310,"user":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T19:43:05Z","updated_at":"2015-12-04T19:43:05Z","body":"Hi @shore I think this should be fixed in Consul 0.6, which should be released next week - https://github.com/hashicorp/consul/pull/1222. We've got a release candidate build if you want to give that a shot on one of your agents - https://releases.hashicorp.com/consul/0.6.0-rc2/ - it will interoperate with 0.5.2 servers."}}