hashicorp / hashicorp/consul

Consul translate_wan_addrs not working

Open
#5,225 11 comments 0 reactions 0 assignees View on GitHub
theme/dns type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

Hi,

We are trying to split our backend architecture into micro services with api-gateway consul. I had tried to setup consul server and two clients. Whenever i fire a dns query from my localmachine to aws instance(server) with query name as servicename.service,consul it always resolves to that instance private ip.I had passed translate_wan_addr to true that didn't help,Then i had also tried passing the public ip with advertise-wan flag then it is being show in api response as tagged wan address but even then the dns response resolves to private ip.Here are the follwing attachments that might help.
![api](https://user-images.githubusercontent.com/38904856/51249450-4cd23700-19b9-11e9-9cd7-8abce4ecf977.png)
![dns](https://user-images.githubusercontent.com/38904856/51249462-522f8180-19b9-11e9-979b-0bb1a79411b2.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.