Discrepancy between dig and DNS lookup
-
Hi,
I have two pfsense routers connected to each other using a Wireguard tunnel.
Site 1 : 10.83.83.1
Site 2 : 10.83.83.2What I would like to achieve is to be able to access both networks from both locations transparently. I had no issues configuring the routes and I can sucessfully access all the machines from one site to another using their IPs.
However, I'm struggling with the DNS resolution. I would like to be able to access machines on the site 2 with the names which are managed by the DNS resolver on the site 2. I therefore configured site 1 pfsense DNS to be 10.83.83.2 :
But whenever I try to resolve a host configured on site 2 from site 1 with the DNS Lookup tool from pfsense interface, it fails
DNS Lookup from site 2 : we can see the host is resolved without any issue from the local DNS server
DNS Lookup from site 1 : resolve fails
But if I try to use dig from the pfsense router on site 1, I successfully get the expected result :
I'm surely missing an essential thing in my configuration but I can't find what with the limited knowledge I have.
-
@tbornon if you want site A to resolve stuff from B, then setup a domain override on site A unbound telling it if looking for domainX.tld to ask 10.83.83.2
-
@johnpoz It works like a charm. Thanks a lot