-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translate_wan_addrs not working for DNS? #2390
Comments
I've just checked on the consul-template if they still showed the wan IPs, while I did test this initially with consul 0.7.0 in a whole new datacenter on this version. I see that now while that hasn't been touched at all, it isn't showing the wan IPs, just the private IPs, and this was working before. |
Hi @JoeOrtiz it looks like that service has https://github.com/hashicorp/consul/blob/master/command/agent/dns.go#L765-L770 |
We should make a note about this in the documentation. |
Hi @slackpad , this was indeed the problem. I can confirm it now works. This was due to registrator, we had passing --ip, once this was removed, this works as intended. Although this causes a problem now with the consul HTTP healthchecks, since consul does a GET on it, since there is no IP for $SERVICE_IP, those health checks will fail. Is there anyway to tell consul to use its own local lan IP, as the lan and wan IP show up properly, but not its service IP, so it can't run it's health check. I am a little afraid to enable in registrator the --internal option, but not too sure if this will mean it will register that now as the SERVICE_IP, and then I would lose my wan/lan capabilities. |
This looks to have been addressed several years ago. Closing. |
I thought this worked before, but since I upgraded to the new version 0.7.0 it always gives me the public IP address in different datacenters.
Although via consul template, I can get the public IP, but not in DNS anymore, and in the catalog it does show properly:
It does work if I ping i-20414138.node.us-west-2-exe-tools.consul but not jenkins.service.us-west-2-exe-tools.consul it always gets the private IP.
The text was updated successfully, but these errors were encountered: