Automated DNS transition for PI-Hole setup Switching system seamlessly when needed
Automated DNS transition for PI-Hole setup Switching system seamlessly when needed
Hi all, I want to setup pi-hole at home, but I am out all day and my wife works at home. So I was wondering if there is a way to setup some sort of DNS failover that if the Pi-hole server fell over, it would switch to another DNS, so that my wife can continue to use the internet and I am not scared to return home if it has gone down? I was wondering if I could script this or if there is something out there. Thanks Theldron
Configured secondary DNS like Google's public DNS, either by hand on devices or via DHCP. No need for automatic failover since DNS already supports multiple servers.
Personal setup: primary DNS points to my own server, which routes through Pi-Hole. If Pi-Hole fails, traffic goes to Google and Cloudflare; if my DNS server crashes, devices connect directly to Google.
I believe you rely on a DHCP server to supply network configurations for your devices? It should allow you to set up at least two DNS servers. Just use the Pi-hole IP as the primary DNS and connect to an external provider for the second one.
I've been testing pihole on a Raspberry Pi for several months and it's always running.
That generally wont work, as there is no strict rule to which DNS server is used at any given time, so you might have some going via PiHole and some going the alternative, all the time. This rather defeats the purpose of having a PiHole in the first place.