DNS Hostnames not Resolving
-
I am setting up a new branch location. I have the IPsec tunnel configured and I can ping and access everything at the main office via IP address and vice versa. However, I cannot find anything via hostname on the other network (servers, PCs, etc.). The main location's DNS servers are handled locally using a 10.10.0.x IP address. I am at a loss on where to go from here. I tried adding those DNS servers to the General setup page but that did not help. Any help on this would be appreciated. Please let me know if you need more detail.
-
@djbarrios so you would want to setup a domain override for the domain your hosts are in that you want to resolve.
So you want to resolve say host.siteB.com that resolves to some 10.x.x.x address
So in site A setup domain override that points to the DNS server on site B, 10.10.0.x
Your also going to want to setup this domain as a private domain, so that rfc1918 records are allowed because of rebind..
https://docs.netgate.com/pfsense/en/latest/services/dns/rebinding.html
On your dns, is this unbound on pfsense? You would need to allow for in the acls of unbound for this remote IP to query it..
You can validate this is working by doing say a directed dig on pfsense in site A to the dns IP something like
dig @10.10.0.x host.siteb.com if that returns the answer your looking for you should be good to go.. Now a client asking unbound on pfsense in your site A should be able to lookup anything that is in your siteb.com domain.
-
@johnpoz Do I need to have a site setup or can I use the local DNS suffix for the domain? Also, how do I check if my DNS is unbound?