OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: glenb2 on December 07, 2025, 06:14:46 PM

Title: Pi-hole -> Unbound. Clients not receiving pi-hole dns ip through dhcp
Post by: glenb2 on December 07, 2025, 06:14:46 PM
I have tried updating the dns server in the general settings to specify my pi-hole instance, but my dhcp clients are still receiving the default gateway ip for dns instead of my pihole ip. If I specify the pihole ip on the client, it will go to pihole and work normally.

I seem to remember this was a simple setting when using ISC, but I'm not absolutely clear how to do it now with Dnsmasq. I was under the impression the dns servers under the general settings would be sent to DHCP clients. Is DNS forwarding the way to do this? I'm sure I'm missing something simple. There is nothing complex about my setup.

Since the upgrade from ISC, I have just used the Unbound blocklists but want the pi-hole dashboard now for materics.
Title: Re: Pi-hole -> Unbound. Clients not receiving pi-hole dns ip through dhcp
Post by: Monviech (Cedrik) on December 07, 2025, 06:19:44 PM
The DNS servers in the general settings are the ones the OPNsense uses for its own DNS requests.

In Dnsmasq create a DHCP option containing the DNS server instead.
Title: Re: Pi-hole -> Unbound. Clients not receiving pi-hole dns ip through dhcp
Post by: glenb2 on December 07, 2025, 09:00:44 PM
Thank you very much! Works perfectly. Much more straightforward than what I had found online.
Title: Re: Pi-hole -> Unbound. Clients not receiving pi-hole dns ip through dhcp
Post by: Monviech (Cedrik) on December 07, 2025, 09:18:07 PM
Nice job :)