{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/2220","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/2220/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/2220/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/2220/events","html_url":"https://github.com/hashicorp/consul/issues/2220","id":168112766,"number":2220,"title":"DNS prepared query failover: does not translate WAN addresses, SRV returns incorrect datacenter","user":{"login":"maxvt","id":677472,"avatar_url":"https://avatars.githubusercontent.com/u/677472?v=3","gravatar_id":"","url":"https://api.github.com/users/maxvt","html_url":"https://github.com/maxvt","followers_url":"https://api.github.com/users/maxvt/followers","following_url":"https://api.github.com/users/maxvt/following{/other_user}","gists_url":"https://api.github.com/users/maxvt/gists{/gist_id}","starred_url":"https://api.github.com/users/maxvt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxvt/subscriptions","organizations_url":"https://api.github.com/users/maxvt/orgs","repos_url":"https://api.github.com/users/maxvt/repos","events_url":"https://api.github.com/users/maxvt/events{/privacy}","received_events_url":"https://api.github.com/users/maxvt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-28T14:40:40Z","updated_at":"2016-08-13T00:28:14Z","closed_at":"2016-08-13T00:28:14Z","body":"Consul version is 0.6.4 for both client and server, running on Ubuntu 14.04.\r\n\r\n### Description of the Issue (and unexpected/desired result)\r\nWhen a DNS prepared query fails over to a different datacenter, the result does not translate WAN addresses despite configuration and SRV query returns incorrect datacenter as part of the \"hostname\".\r\n\r\n### Reproduction steps\r\nMultiple datacenters with translate WAN enabled. Prepared query that includes a fail over to other datacenters. Service is only available in some datacenters; perform the prepared query using the DNS interface from a datacenter where the service is not available.\r\n\r\nA failing test for this scenario and a tentative fix are included in https://github.com/hashicorp/consul/pull/2219\r\n\r\n### Log Fragments or Link to [gist](https://gist.github.com/)\r\n```\r\n-- ~ $ dig my-service.query.consul SRV\r\n\r\n; <<>> DiG ---Ubuntu <<>> my-service.query.consul SRV\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: -\r\n;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\r\n\r\n;; QUESTION SECTION:\r\n;my-service.query.consul.\t\tIN\tSRV\r\n\r\n;; ANSWER SECTION:\r\nmy-service.query.consul.\t0\tIN\tSRV\t1 1 8200 correct-hostname.node.wrong-datacenter.consul.\r\n\r\n;; ADDITIONAL SECTION:\r\ncorrect-hostname.node.wrong-datacenter.consul. 0 IN\tA\tip-address-local-to-wrong-datacenter\r\n\r\n;; Query time: 5 msec\r\n;; SERVER: 127.0.0.1#53(127.0.0.1)\r\n;; WHEN: Wed Jul 27 22:08:32 UTC 2016\r\n```\r\n\r\nThis looks similar to https://github.com/hashicorp/consul/issues/2218."}}
{"actor":{"display_login":"slackpad"}}