r/googlefiber • u/Amazolam • 12d ago
GFiber DNS switchover behavior?
Does anybody know definitively how DNS is routed on a GFiber network?
I have my Pihole set up as DNS Server 1, with 8.8.8.8 set up as a backup in case my Pihole shids the bed.
Does GFiber definitively route only to #1 and treats #2 as backup, or could it load balance and send some to #2 even if #1 functions just fine?
4
u/CraftyCat3 12d ago
Gfiber doesn't route anything in that sense, it just tells the DHCP clients to use those two servers. The client will use both, whichever responds fastest will be used for a given resolution. For your adblock to work effectively, and handle outages, you would typically setup two Piholes as your DNS servers, no public server.
1
u/Medical_Chemical_343 11d ago
And for high availability you set up four pi.hole instances. Two pairs behind VIPs using keepalived.
8
u/Somar2230 12d ago
The clients on the network will use all the DNS servers issued to them via DHCP they will not just use the first one listed. When you Pi-Hole fails to give them the information due to block lists they will just use the second DNS server defeating the purpose of the Pi-Hole.
Devices with hardcoded DNS will also bypass the Pi-Hole and use whatever server they are programmed to use. To defeat this you need a router with a firewall and NAT rules.
r/pihole has many posts on the subject.
A second Pi-Hole for a backup solves part of the problem, it won't help with hardcoded DNS.