# Consul DNS between DC doesnt work

**URL:** <https://discuss.hashicorp.com/t/consul-dns-between-dc-doesnt-work/64502>\
**Category:** Consul\
**Created:** [April 2, 2024, 6:55pm UTC](https://discuss.hashicorp.com/t/consul-dns-between-dc-doesnt-work/64502 "2024-04-02T18:55:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![garry-t](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/garry-t/32/40275_2.png) [@garry-t](https://discuss.hashicorp.com/u/garry-t)\
**Post date:** [April 2, 2024, 6:55pm UTC](https://discuss.hashicorp.com/t/consul-dns-between-dc-doesnt-work/64502/1 "2024-04-02T18:55:57Z")

</div>

I cant figure out what is the problem. I have consul cluster built for dc1 and dc2.  
I set up basic DNS feature using dnsmasq configuration.

Now I want to test ping between nodes in DCs like

dc1 -\>dc1 - works  
dc1-\>dc2 - no

To achieve it I need to specify full name in node like `node_name.node.dc.consul`  
What is the reason of it, what I missed in cluster configuration and/or dnsmasq.

---

<div class="post-metadata">

**Author:** ![garry-t](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/garry-t/32/40275_2.png) [@garry-t](https://discuss.hashicorp.com/u/garry-t)\
**Post date:** [June 25, 2024, 8:36pm UTC](https://discuss.hashicorp.com/t/consul-dns-between-dc-doesnt-work/64502/2 "2024-06-25T20:36:14Z")

</div>

to solve it need to use consul prepared queries.  
Closed.
