DNS resolution of my domain on the LAN, am I missing something?
-
Hi folks,
I have my own domain, I can access services using service.domain.com through Traefik on Truenas Scale, but for each service I need to add a Host Override in the DNS resolver.
I tried to do a wildcard using:
server:
local-zone: "domain.com" redirect
local-data: "domain.com 86400 IN A 192.168.1.102"BUT this gives a duplicate zone error, so I removed all the overrides but still get the error as pfsense itself has a fqdn of pfsense.domain.com.
DO I have to enter a host override for every service? OR (please, please) is there an easier solution?
I think that bind9 will do what's required BUT then I can't use pfblockerNG as it relies on unbound as far as I understand.
What's my best approach to resolve this? Currently all but 2 services need pointing to the same server, so it's like I need a wildcard.domain.com go here and other 2 go there and there!
Thanks in advance.
-
@hazzard You can skip "Custom options" and use a Domain Override to point the domain to (a) local DNS server(s) if you have one (quite useful for Active Directory)
Does Host Override not allow for a * character? I haven't tried...
-
@steveits Thanks for replying. I only have the DNS resolver on pfsense, so no other DNS server to point to. I just have a home network, no AD or anything fancy like that. No, you're not allowed to enter an asterisk but you can leave host blank, however that does not seem to do anything!
I guess I could have another DNS server running and then use a Domain Override as you suggest unless someone else has a better idea.