*operating system Ubuntu 20.04.5 Server
hardware]_Intel Xeon
We have tried to implement pi-hole a few times but ran into issues historically. Came back to it after about 3 years and started again.
We have a high-performance NAS server running Ubuntu 20.04.5 and docker with a lot of spare headroom so we used that as the Docker host.
We installed the latest image just over a week ago. It ran up fine and we started the configuration.
We have been running OPNSense for many years. It was providing DNS and DHCP services for the LAN.
Initially, we implemented pi-hole and turned on DNS and DHCP recreated the static leases etc. and pointed OPNSense at Pi-Hole in general settings. We disabled ONPSense DHCP and turned off dnsmasq. So the only DHCP/DNS service on the LAN was from pi-hole and OPNSense was using pi-hole as its upstream server. Pi-Hole was using 1.1.1.1 and 8.8.8.8 as its upstream servers.
We had some challenges gettings PXE booting working but eventually pieced an answer together from various posts here and on dnsmasq site.
It seemed to work fine and websites etc. seemed noticeably snappier. However, our Zimbra server could not get any dns service and was timing out.
After many many hours of googling and searching we gave up. It didn't really make sense. We set the masterdnsiP in zimbra pointing at pi-hole and soft and hard reboots but alas we could not get it to work. It was as if somewhere the IP of the OPNSense server was still in there somewhere.
If we put 1.1.1.1 and 8.8.8.8 in the OPNSense general settings and started OPNSense dnsmasq it would burst into life and all was well. So in that case DHCP clients would get pi-hole as the DNS and others would get OPNSense and Zimbra would be using OPNSense.
So we then did the config as set out in the blog on OPNSense and Pi-Hole and then the extra config needed to enable unbound using 5335 which is in various posts but the part 2 article looks like it never got written.
That way to the Zimbra server it looks like OPNSense is the primary DNS server and all is well. However, it is slow! Noticeably slow at the browser compared to when we were using pi-hole directly and bypassing OPNSense for DHCP and DNS.
I appreciate we just made the DNS cycle more complex as now its Client>OPNSense>Pi-Hole>[Unbound]>Upstream
Instead of client>pi-Hole>upstream
But it really seems sluggish as a service.
Any suggestions to tweak the config of OPNSense or PI-Hole would be appreciated as it is doing a great job and seems to be blocking around 7% of the traffic we don't want.
Cheers
Tony