Hello All,
I have a problem with CONSUL DNS queries through DIG. So requesting for guidance.
Dig to a external Consul Server fails, but telnet to that external server succeeds.
Here is my setup:
Consul Server 1 - x.x.x.1
Consul Server 2 - x.x.x.2
Consul Server 3 - x.x.x.3
Remote Node - x.x.x.4
Consul is running DNS server on 8600 on all of these . Firewall is also opened to all these servers to port 8600
I am also running DNSMASQ to route the DNS queries on port 53 to the local consul server on port 8600, config as below from the remote node(x.x.x.4)
vi /etc/dnsmasq.d/10-consul
vi /etc/resolv.conf
nameserver 127.0.0.1
nameserver a.b.c.d
nameserver w.x.y.z
On Node x.x.x.3, the below dig command all works fine.
dig @localhost -p 8600 consul.service.consul
dig @x.x.x.3 -p 53 consul.service.consul
dig @x.x.x.3 -p 8600 consul.service.consul
dig consul.service.consul
On Remote Node: But when I try to hit this DNS service from a remote node, then dig fails with the below error code.
dig x.x.x.3 -p 8600 consul.service.service
;; connection timed out; no servers could be reached
But telnet x.x.x.3 8600 - works fine
(I really want to do this, so I can configure the DNSMASQ on my local node to route the .consul TLD requests to remote consul server )
The same works fine on my local(MAC) machine, so I am suspecting this could be something do with network policies , but not sure.
I have done hours of research and tried many things, all in vain.
Kindly see if any one of you can guide me here.
Thanks in advance,
Om