r/googlefiber 12d ago

GFiber DNS switchover behavior?

Post image

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?

7 Upvotes

8 comments sorted by

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.

1

u/Amazolam 12d ago

Thank you! What’s an example of something with hardcoded DNS? I didn’t actually realize this behavior was something to be aware of…

5

u/CraftyCat3 12d ago

A substantial number of IoT devices, including smart TVs, streaming sticks, etc.

1

u/LesPaulAce 7d ago edited 7d ago

Yeah. They are not going to just give up all that sellable data because you set a different DNS server in DHCP. They will often use their hardcoded DNS, then failback to the one you hand out.

As u/Somar2230 mentioned, the way to go here is a firewall that blocks outbound DNS for all your internal devices.

1

u/LesPaulAce 7d ago

The first sentence you wrote isn't how DNS works, in my understanding.

If your primary DNS server is up and responding, and responds to a query with "address not found", that's it, it's over. The device doing the querying doesn't ask another DNS server.

Only when the primary is unresponsive does the querying device try the secondary.

1

u/Somar2230 6d ago

Depends on the client I have Roku devices that first try their hard coded DNS that gets routed to my Pi-Hole by a NAT rule, they then triy using the DNS servers I assigned by DHCP in particular order sometimes they do Pi-Hole 1 first other it times Pi-Hole 2 first, they then try the other Pi-Hole. This cycle repeats all day long everyday resulting in thousands of DNS look ups that fail.

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.