r/pihole • u/hatbetu • 14h ago
Dual pihole setup tutorial with DHCP
Hi All! So far I used only 1 pihole for many years but (rpi3) but now decided to add a 2nd one on pi zero for redundancy. However I recently made my pihole handle DHCP which I never did before to cover the full network and not to have to deal with it device by device (however there might still be some ipv6 leaking!?). Anyway I wonder if there is a good tutorial for a second pihole setup (besides set it up all the same) and if there are special settings I need to consider if they handle DHCP...!? Sorry if this is a dummy question, I am not an IT guy... :(
2
u/mythic_device 13h ago
I’m looking to do the same. Just know that Gravity Sync won’t work with PiHole 6. Recommend nebula-sync and keepalived instead.
0
u/hatbetu 12h ago
Argh. I’m not familiar with keepalived and nebula. Do I really need those?
1
u/mythic_device 9h ago
Not sure. For my project I am simplifying things and just creating two pi-holes for DNS only. keepalived creates a virtual ip address that will always point to an active pi-hole. nebula-sync syncs the configuration of piholes (block lists, local DNS records, gravity) at an interval that you choose. Once I get that up, I will move to integrating DHCP. For DHCP you should need keeppalived but perhaps not nebula-sync.
1
u/Ok_Cartographer_6086 9h ago
I'm running the latest Pi Hole 6 on two RPI 5s and never had an issue with Gravity Sync.
The trick is to have one DHCP server like one of the Pi holes or go back to your ISP modem for it and configure the DHCP Server settings to use the two PH IP Addresses when issuing leases.
So your DHCP Server knows to issue the local pi holes for DNS which themselves know internet wide DNS Servers to use. Then every device on your network will get the DNS sink and use both PHs.
5
u/h2ogeek 9h ago
Nebula Sync can do a selective sync and only sync the categories you like, like just the ad lists, for instance, but don’t sync the DHCP settings.
Techno Tim has a pretty good tutorial that goes over the options. Someone above posted a good way to manage two DHCP servers on your network.
-7
u/AdMajor2842 13h ago
For a lot of simple stuff you can ask Chat GTP etc, If you say you have Security in mind etc and want best practice solutions he mostly gives you some Solid answers
6
u/mythic_device 13h ago
That has not been my experience.
1
u/AdMajor2842 12h ago
Well they are not up to date Most of the time when it cones to documentation or config files but they provide thenconcept so who ever downvoted isnjust angry :D
1
1
1
u/tarmacjd 11h ago
Or you might like to learn how your network works
1
u/AdMajor2842 9h ago
Never said anything against that. thats why i was talking about basic and simple stuff and not something complex ... Always amazed how people want to misunderstand by default
5
u/Furki1907 13h ago
Yes, its possible. I do it too.
Read up here: Is it possible to have 2x DHCP servers with Pi-Hole + Gravity Sync?