this post was submitted on 12 Jul 2024
874 points (97.9% liked)

me_irl

4644 readers
340 users here now

All posts need to have the same title: me_irl it is allowed to use an emoji instead of the underscore _

founded 1 year ago
MODERATORS
874
me💻irl (slrpnk.net)
submitted 3 months ago* (last edited 2 months ago) by boredsquirrel@slrpnk.net to c/me_irl@lemmy.world
 

It was definetly DNS

you are viewing a single comment's thread
view the rest of the comments
[–] KyuubiNoKitsune@lemmy.blahaj.zone 19 points 3 months ago (10 children)

It's called a secondary DNS server. Like, literally the reason it exists. I guess it's still on the line towards knowing what TF you're doing. Every DHCP server offers at least 2 dns server options.

[–] Celnert@discuss.tchncs.de 3 points 3 months ago (7 children)

Setting a second DNS in your router will bypass the pihole though, making it useless unless both servers point to a different pihole server

[–] KyuubiNoKitsune@lemmy.blahaj.zone 0 points 3 months ago* (last edited 3 months ago) (4 children)

A secondary DNS server set in your DHCP options will do no such thing.

The secondary DNS server is only used if lookups to the primary fail, say like when your pihole crashes or something.

The only way it will work the way you think it's going to, is if you set your DNS resolver to use round robin on a list of DNS servers.

Its literally just a backup DNS server address, and is only used should the primary fail, and returning an nxdomain is not a failure.

Please note, I use secondary to refer to the 2nd IP in your DHCP/DNS options, not to a secondary DNS server, which is something else.

[–] Celnert@discuss.tchncs.de 2 points 3 months ago (1 children)

Right, we are on the same page but from experience, setting DNS 1 to the pihole and DNS 2 to for example 8.8.8.8 in your DHCP router will make the pihole useless. There are dozens of similar threads across different forums saying the same thing but if you know how to do it please let me know... Example: https://www.reddit.com/r/pihole/comments/864oli/secondary_dns_setting/

[–] KyuubiNoKitsune@lemmy.blahaj.zone 0 points 3 months ago (1 children)

Well, after working as some form of systems engineer for the last 17 years, including quite a few where some of my primary responsibilities were looking for DNS servers, this is literally the first time I have come across this.

Also not quite sure what they're doing because my Debian, 2x Windows, 3x Android and occasionally Apple clients never bypass my primary DNS setting. Neither do the server farms I run at work. So who knows.

[–] Celnert@discuss.tchncs.de 3 points 3 months ago* (last edited 3 months ago) (1 children)

Yeah, all I could find was vague statements about the DNS server lookup order being "OS specific" and windows specifically being know for "not respecting DNS order", see https://www.reddit.com/r/networking/comments/kb8hvt/dhcp_dns_server_order/

This is also supported by statements from pihole devs: https://www.reddit.com/r/pihole/comments/x2248t/is_it_worth_creating_a_second_pihole_dns_server/ And: https://discourse.pi-hole.net/t/primary-vs-secondary-dns/1536/4

And then there are the hundreds of similar questions which one could take as "evidence by quantity" or whatever.

In that case I'll be very thankful that mine works as I expect and will try not to change anything.

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