I’m running the NS box behind a opnsense. The upstream DNS of the NS box is pointing to a pihole. The DNS of the pihole is pointing to the unbound service of the opnsense.
I realize that the internal pihole of the NS box is still pointing and querying to 1.1.1.1 and 9.9.9.9. I’d like to know why? Is there a special reason for? Can I change it to my pihole?
Now - where do I find the gui for the pihole for the NS? I didn’t know that there are settings/props in the NS db? BTW couldn’t find any information in the manuals…
For my NS the query
#config show pihole
shows nothing.
To clarify: my pihole is the official one which is running on a raspberry pi. The custom DNS is configured to query unbound on my opnsense.
that’s clear to me. As I wrote I’m wondering that the NS box is querying the DNS servers defined in /etc/pihole/dnsmasq.conf. Instead of querying the upstream server, which I defined as the pihole in my LAN.
In my understanding there should be no other upstream DNS as those defined in the cockpit. This seems to be a bypass to me.
Maybe you need to reapply the config of Threat Shield to write the correct DNS server to /etc/pihole/dnsmasq.conf but usually it should be applied when you change the Neth DNS servers:
signal-event nethserver-blacklist-update
Let’s check you Neth DNS config:
config show dns
EDIT:
Maybe there are errors in the template. Does expanding the template work?
Interesting. Maybe a bug? I remember at the initial install (which was a migration from SME) I defined 1.1.1.1 and 9.9.9.9 as DNS servers. It seems they survived the change to the ip of my pihole.
Did as you requested. First the blacklist signal and then the template expand for the dnsmasq.
Cat /etc/pihole/dnsmasq.conf shows now the ip of the pihole, which is the defined upstream DNS in cockpit.
I didn’t realize that the thread shield is active… I’m more focussed to fight (not all) threads with the opnsense. Don’t get me wrong, I don’t want to start a discussion/flamewar about a separate hardware firewall vs. a built-in firewall in a server.
Thank you for staying with me and working this out. Now every device is querying first the pihole and then unbound in the opnsense. This is the way I like to have.