this post was submitted on 04 Feb 2024
47 points (98.0% liked)

Selfhosted

39276 readers
199 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I have an asus router with a pi-hole on the network.

I was doing some work on my server and noticed that when pi-hole was down, I couldn't access the internet. I was looking for some ideas online how to deal with this, but they said to have a second pihole on the network in case one is offline. Is that the only way to do it? Is there any way to have the network go back to normal if the pihole is offline?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] -5 points 7 months ago (7 children)

Yeah, looks like you don't know what you're talking about.

The second ipv4 DNS address is for redundancy and every network connected system will use the first one as long as it responds.

It's perfectly fine to have a single pihole and use something like quad9 as a failover in the unlikely event that your pihole goes down unexpectedly.

[–] [email protected] 6 points 7 months ago* (last edited 7 months ago) (4 children)

Actually they do know what they’re talking about. Configuring DHCP with multiple DNS servers isn’t for failover, it’s for redundancy. The result is ultimately operating system dependent, but modern Windows operating systems will query all configured DNS servers in parallel and will accept the first answer it receives. So if you configure your Pihole as one DNS server and a public DNS server as a second, a lot of your traffic will just bypass your Pihole ad filtering entirely.

[–] [email protected] -4 points 7 months ago (3 children)

Proof?

I read 15 different sites about DNS and not a one of them claimed anything like this. They universally all stated that your network attached devices would use the 1st one unless it didn't respond and only use the 2nd one if the 1st one did not.

So once again, I ask "Can you send me some more information on this" and not just claim it without any backup information?

I apologize if I am coming off rude, just my BS meter is getting close to the red zone and I would really appreciate some reliable evidence.

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago)

On the left is the DNS server that DHCP sets first. On the right is one it sets second.

This is a mixed machine network (Windows, MacOS, iOS, Android etc).

My clients will mostly pick option number one, but as you can see it's not a guarantee at all.

EDIT. Since lemmy doesn't show kbin images attached to comments https://media.kbin.pieho.me/81/1e/811e8f6bf8aa5e8ea9219ff52d1e61aec8624107ffd11f2a13631d0a1ac29abc.jpg

load more comments (2 replies)
load more comments (2 replies)
load more comments (4 replies)