I have a question regarding DNS and consul : I have two datacenters up and running, both hosting a mesh gateway and two services, use case is pretty simple : I want serviceA-dc1 to be able to talk to serviceB-dc2 through the DNS name ( e.g. , from my serviceA-dc1 , typing something like
curl serviceB-dc2.service.dc2.consul) but this hostname is resolved by the local IP of my service (
10.6.0.2) and obviously serviceA-dc1 doesnt have this route.
I’m well aware of the upstream mechanic but I am pretty sure I am missing something, is it really the only way to have a proper cross-dc communications between my envoy-proxies ?
Thanks alot for you help in advance.