Hello,
I am quite new to Linux, Unbound, Pi-hole and also OPNsense which I have since recently.
Until I had it set up like this (on the OPNsense):
Unbound active, no forwarding set up, but with Overrides for my company domains to our company DC. DNS on clients was only the OPNsense.
Now I'd expect it to work it like this, if I understand Pi-hole and Unbound conf-file:
Pi-hole has local host for DNS. conf file has a forwarder portion set up, like this:
forward-zone:
name: "somecompanydomain.com"
forward-addr: 10.10.10.10
So, this would mean, go to root for everything else, but contact 10.10.10.10 for somecompanydomain.com.
Of course, clients should only be pointed to the Pi-hole only.
But it doesn't work. I have to set DC as a DNS forwarding server in Pi-hole, which, if I understand correctly, shouldn't be needed - I'd like for Unbound to handle all that.
Would that be correct?
´
Thank you.