OPNsense Forum

English Forums => General Discussion => Topic started by: meazz1 on February 02, 2022, 01:14:29 PM

Title: PiHole and Opnsense - which IP to use in the Opnsense System --> General DNS fi
Post by: meazz1 on February 02, 2022, 01:14:29 PM
I have a simple setup of Opnsense+PiHole.
I have assigned the IP of my PiHole to the DNS field in DHCP of Opnsense.
Should I use PiHole's IP in the System- Setting - General in the DNS field or use something like 9.9.9.9 in the system DNS box?
Title: Re: PiHole and Opnsense - which IP to use in the Opnsense System --> General DNS fi
Post by: RamSense on February 02, 2022, 09:11:02 PM
I have this system - setting - general DNS empty. I do not use pihole anymore and jumped over to the plugin Adguard Home.

For Pihole there is this guide (among a lot of other guides available, also on this forum) but maybe it helps you:
https://pi-hole.net/blog/2021/09/30/pi-hole-and-opnsense/#page-content
(https://pi-hole.net/blog/2021/09/30/pi-hole-and-opnsense/#page-content)
Title: Re: PiHole and Opnsense - which IP to use in the Opnsense System --> General DNS fi
Post by: Greelan on February 02, 2022, 09:54:29 PM
If you want OPNsense to use the pihole too for DNS, then yes. And probably need to tell it not to the use the local resolver (unbound or whatever), if that is even enabled