You should probably also sync them. I use orbital sync for this. github.com/mattwebbio/orbital-sync
Comment on I’m about to throw my entire Pihole out the window
friend_of_satan@lemmy.world 1 year ago
One of your biggest problems here is what we call high availability. You have a single point of failure: your one pi-hole server. For any service to be resilient, it needs to be highly available. This means full redundancy for all things in the whole stack that provide the service.
For pihole, this means running a pihole instance on two separate devices, with two separate IP addresses. Your dhcp server will send out two DNS servers with every lease. Most DNS clients will use at least two DNS servers.
If one of the servers goes down, your other, redundant pihole server will continue serving DNS.
This is why, contrary to other recommendations in this thread, I run pihole in docker on regular machines. If one of those machines dies, the other machine will continue serving requests, and it’s easy to launch the docker pihole on another machine and reconfigure my DNS server to hand out the new DNS server address.
doodlebob@lemmy.world 1 year ago
floofloof@lemmy.ca 1 year ago
Or gravity-sync. I use two Pi-holes with gravity-sync and it’s very reliable and effortless.
Limit@lemm.ee 1 year ago
I run pihole on a proxmox cluster (lxc containers), 2 separate IPs and I setup keepalived and made the virtual IP the primary dns ip that my dhcp server hands out, pihole1 is the master and pihole2 secondary. I use gravity sync to keep both piholes in sync. Works very well and I can reboot one at a time without losing dns at all. Techno tim on YouTube has a guide on how to setup keepalived on 2 pihole servers that helped me set it up.
urquell@lemm.ee 1 year ago
This is not an answer to the question at all
Baahb@lemmy.world 1 year ago
Yeah it is? There’s a reason your dns confutation has a backup IP address.
urquell@lemm.ee 1 year ago
That is true. But a simple service like dsn doesn’t go sideways every month usually. If he gets two of these services running, he just had double the trouble.
PerogiBoi@lemmy.ca 1 year ago
That’s a good idea that I hadn’t considered. I’ll see if I can get Pihole running on an old android phone I have lying around.
Gooey0210@sh.itjust.works 1 year ago
My server and a raspberry are running adguard home
Both have autoupdate with autoreboot. If I need to change something, connect, disconnected, everything will continue working
nbafantest@lemmy.world 1 year ago
I have a google router and It allows me to enter 2 DNS servers incase the first DNS Server doesnt work.
stown@lemmy.world 1 year ago
That’s pretty standard for nearly every router and Internet connected device. There is almost always a setting for Primary and Secondary DNS servers.