I run two pihole instances here, both behind Unbound, and both peering with my NextDNS account upstream. The primary instance runs in a LXD container on a VM, and the secondary runs in a Docker container on a Pi4. Ignore the brief maintenance window below, the primary failed over as expected, to my secondary.
This covers my LAN, WAN, VPN and off-premises needs perfectly. I'm using Nebula to keep them sync'd, and a very small keepalived script that flips the VIP from one to the other, preferring the primary with some weighting.
vrrp_script chk_pihole {
script "/etc/keepalived/check_pihole.sh"
interval 2
fall 2
rise 2
weight -150
}
vrrp_instance VI_DNS {
state BACKUP
interface enP3p49s0
virtual_router_id 53
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass [REDACTED]
}
virtual_ipaddress {
192.168.4.5/22
}
track_script {
chk_pihole
}
}
Looking at Pi-Hole HA, I'm wondering how I could fold in the same capability, without a reinstall or compromising my current configuration, or its failover and failback.
Reading the above discussion, it's not an add-on, it's a complete rebuild and reinstall from scratch. Is that still the case?
