F5F Stay Refreshed Power Users Networks Automated DNS transition for PI-Hole setup Switching system seamlessly when needed

Automated DNS transition for PI-Hole setup Switching system seamlessly when needed

Automated DNS transition for PI-Hole setup Switching system seamlessly when needed

T
theaj42
Member
50
08-09-2023, 07:48 PM
#1
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
T
theaj42
08-09-2023, 07:48 PM #1

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

R
RockerMorton
Member
187
08-09-2023, 10:57 PM
#2
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.
R
RockerMorton
08-09-2023, 10:57 PM #2

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.

L
Lordyouyou
Member
167
08-09-2023, 11:03 PM
#3
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.
L
Lordyouyou
08-09-2023, 11:03 PM #3

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.

T
70
08-09-2023, 11:47 PM
#4
I've been testing pihole on a Raspberry Pi for several months and it's always running.
T
ToxicDragon134
08-09-2023, 11:47 PM #4

I've been testing pihole on a Raspberry Pi for several months and it's always running.

X
Xonji
Junior Member
9
08-10-2023, 04:30 AM
#5
Hi, glad to hear that! Your idea to install a PFSSL box for DHCP and DNS is solid. Let me know if you need more help.
X
Xonji
08-10-2023, 04:30 AM #5

Hi, glad to hear that! Your idea to install a PFSSL box for DHCP and DNS is solid. Let me know if you need more help.

J
Jason2005_HD
Member
155
08-10-2023, 08:38 AM
#6
Shifted to Networking
J
Jason2005_HD
08-10-2023, 08:38 AM #6

Shifted to Networking

D
dm20_tm
Member
227
08-11-2023, 11:32 AM
#7
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.
D
dm20_tm
08-11-2023, 11:32 AM #7

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.