Why would you need two piholes?
I run a combo of pihole+unbound, which means that my pihole besides blocking some bad stuff also resolves DNS locally. What happens if your DNS server stop working? your whole internet goes down.
The solution then is add more piholes. My current setup is one pihole (in a raspberry pi) and a second pihole (in a VM; in Unraid if that matters). The problem is that if you make your own modifications to your primary pihole those modifications won’t be in your second pihole. Hence, syncing the two pihole instances.
Here is the script; probably won’t be as complete as Gravity Sync but wanted to give this a go myself anyway!
What this does is basically put your gravity.db database file in your secondary pihole (the one you need to run the script from) and do the same with your custom cname.conf file.
So far it is working fine for my needs.
You will need to run this from a passwordless sudo user.
Un comentario en “Syncing two pihole instances.”