{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2780","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2780/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2780/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2780/events","html_url":"https://github.com/hashicorp/terraform/issues/2780","id":95850446,"number":2780,"title":"consul provider cannot resolve server on VPN","user":{"login":"igrayson","id":6943580,"avatar_url":"https://avatars.githubusercontent.com/u/6943580?v=3","gravatar_id":"","url":"https://api.github.com/users/igrayson","html_url":"https://github.com/igrayson","followers_url":"https://api.github.com/users/igrayson/followers","following_url":"https://api.github.com/users/igrayson/following{/other_user}","gists_url":"https://api.github.com/users/igrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/igrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrayson/subscriptions","organizations_url":"https://api.github.com/users/igrayson/orgs","repos_url":"https://api.github.com/users/igrayson/repos","events_url":"https://api.github.com/users/igrayson/events{/privacy}","received_events_url":"https://api.github.com/users/igrayson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/consul","name":"provider/consul","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-18T19:05:25Z","updated_at":"2015-10-12T14:29:19Z","closed_at":null,"body":"Hi team,\r\n\r\nMy consul server lives on a VPN with private DNS. While connected to the VPN, I expect the consul provider to be able to resolve and connect to my consul server.\r\n\r\n```\r\nprovider \"consul\" {\r\n  scheme     = \"http\"\r\n  address    = \"myconsul.myco.com:8500\"\r\n  datacenter = \"${var.region}\"\r\n}\r\n```\r\n\r\nError:\r\n```\r\n  Error refreshing state: 1 error(s) occurred:\r\n\r\n  * 1 error(s) occurred:\r\n\r\n  * Failed to get value for path 'production/redis/service/port' from Consul: Get http://myconsul.myco.com:8500/v1/kv/production/redis/service/port?dc=us-west-2: dial tcp: lookup myconsul.myco.com: no such host\r\n```\r\n\r\nI can `ping` him:\r\n```\r\n$ ping myconsul.myco.com\r\nPING myconsul.myco.com (10.10.27.22): 56 data bytes\r\n64 bytes from 10.10.27.22: icmp_seq=0 ttl=63 time=10.788 ms\r\n```\r\n\r\n`consul` can talk to him:\r\n```\r\n$ consul --version                                                                                                                                                                                \r\nConsul v0.5.2\r\nConsul Protocol: 2 (Understands back to: 1)\r\n$ consul members -rpc-addr=myconsul.myco.com:8400\r\nNode                                       Address             Status  Type    Build  Protocol  DC\r\n..\r\n```\r\nThis error began with terraform 0.5.3. terraform 0.6.0 does not work either.\r\n\r\nThis error does not appear, and I am able to use the consul provider fully, in terraform 0.5.2."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/147413498","html_url":"https://github.com/hashicorp/terraform/issues/2780#issuecomment-147413498","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2780","id":147413498,"user":{"login":"phinze","id":37534,"avatar_url":"https://avatars.githubusercontent.com/u/37534?v=3","gravatar_id":"","url":"https://api.github.com/users/phinze","html_url":"https://github.com/phinze","followers_url":"https://api.github.com/users/phinze/followers","following_url":"https://api.github.com/users/phinze/following{/other_user}","gists_url":"https://api.github.com/users/phinze/gists{/gist_id}","starred_url":"https://api.github.com/users/phinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinze/subscriptions","organizations_url":"https://api.github.com/users/phinze/orgs","repos_url":"https://api.github.com/users/phinze/repos","events_url":"https://api.github.com/users/phinze/events{/privacy}","received_events_url":"https://api.github.com/users/phinze/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T14:29:19Z","updated_at":"2015-10-12T14:29:19Z","body":"Sorry for the trouble here - that's a weird regression. Will try to reproduce and follow up."}}