I just run teleporter on my primary and manually upload that backup to my secondary. My blocklists and local DNS dont change much, so its not a big concern of mine.
Nebula-Sync and Orbital-Sync may be of interest to you. It seems like you want to automate the syncing.
I have this same setup, current strategy is I have automation in my n8n where I can fill in a form and if submits the dns addition to both piholes via api. I am considering alternatives but has worked alright for now
I've found that if I set primary as pihole and secondary as, say 1.1.1.1. then, my android phone will pick either one seemingly randomly. So my local DNS doesn't work.
My workaround was to do two pihole. I forget how I sync them though.
I run unbound alongside pihole for extra privacy and I keep my unbound config in git. I have gitea set up to push out new unbound configs every time there’s a git push.
That's a great idea! Thanks! I've got unbound running locally on one instance of Pihole, and I've got it in a LXC for the other instance. Using the configs to pull from git would make that much easier to sync.
There is an iOS/macOS app called “Pi-hole Remote” that can manage multiple PiHole instances at once. I use that because it will make changes on both instances at once for me.
Other than that, I log in to each device and copy paste.
if you just want to have a solution where you can create / delete multiple local dns records on a raspberry, you van use terraform, it has a raspberry provider. I tried it recently, i was able to import existing records, create new ones. you just have to keep the list in a terraform project.
21 Comments
ilillilillilillililli@lemmy.world · 21 pts · 276d
I just run teleporter on my primary and manually upload that backup to my secondary. My blocklists and local DNS dont change much, so its not a big concern of mine.
Nebula-Sync and Orbital-Sync may be of interest to you. It seems like you want to automate the syncing.
GeekyOnion@lemmy.world · 3 pts · 276d
Thanks! I'll take a look at those!
etchinghillside@reddthat.com · 10 pts · 276d
Multiple Piholes?
GeekyOnion@lemmy.world · 19 pts · 276d
ryokimball@infosec.pub · 3 pts · 276d
Can you just point the second to the first?
GeekyOnion@lemmy.world · 2 pts · 276d
Huh. Good tip! I'll have to test this out.
TheRagingGeek@lemmy.world · 2 pts · 275d
I have this same setup, current strategy is I have automation in my n8n where I can fill in a form and if submits the dns addition to both piholes via api. I am considering alternatives but has worked alright for now
IncogCyberSpaceUser@piefed.social · 1 pts · 275d
modus@lemmy.world · 9 pts · 276d
Why do you have more than one? Is this for an enterprise-level situation?
4am@lemmy.zip · 12 pts · 276d
So the whole house doesn’t go down and/or need to be reconfigured to do an update
modus@lemmy.world · 6 pts · 276d
Pfft... Redundancy... Over-rated. ;)
talentedkiwi@sh.itjust.works · 7 pts · 276d
I've found that if I set primary as pihole and secondary as, say 1.1.1.1. then, my android phone will pick either one seemingly randomly. So my local DNS doesn't work.
My workaround was to do two pihole. I forget how I sync them though.
modus@lemmy.world · 5 pts · 276d
I see. I set my router's DNSs to pihole for the first and then one of adguard's public IPs for the second.
DaGeek247@fedia.io · 2 pts · 276d
My dns config options always have at least two spots. Obviously, this means I need two piholes to fill them both up.
More seriously, it has actually saved my network from going down a couple times already.
GeekyOnion@lemmy.world · 1 pts · 275d
Just a home lab for fun and experimenting.
oxfordcoma@lemmy.world · 7 pts · 276d
I run unbound alongside pihole for extra privacy and I keep my unbound config in git. I have gitea set up to push out new unbound configs every time there’s a git push.
GeekyOnion@lemmy.world · 3 pts · 276d
That's a great idea! Thanks! I've got unbound running locally on one instance of Pihole, and I've got it in a LXC for the other instance. Using the configs to pull from git would make that much easier to sync.
WASTECH@lemmy.world · 5 pts · 276d
There is an iOS/macOS app called “Pi-hole Remote” that can manage multiple PiHole instances at once. I use that because it will make changes on both instances at once for me.
Other than that, I log in to each device and copy paste.
GeekyOnion@lemmy.world · 1 pts · 275d
Thanks! I didn't even think about running a local app, but this may be a fun find to experiment with!
stratself@lemdro.id · 3 pts · 276d
Pihole runs on dnsmasq right? Maybe you could create a cronjob to copy the underlying dnsmasq.conf to other Piholes
GeekyOnion@lemmy.world · 2 pts · 275d
Excellent suggestion! Thank you!
wersooth@lemmy.ml · 1 pts · 260d
if you just want to have a solution where you can create / delete multiple local dns records on a raspberry, you van use terraform, it has a raspberry provider. I tried it recently, i was able to import existing records, create new ones. you just have to keep the list in a terraform project.