this post was submitted on 05 May 2025
462 points (98.3% liked)

Technology

69804 readers
3402 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 2 days ago* (last edited 1 day ago) (1 children)

Edit: Apparently years of seeing it called primary and secondary led to a fundamental misunderstanding of how it works lol. Just use a pi and ad guard.

Randomly? No, only when your pi goes down. Or when ever you're looking at something that gets around the simple DNS based ad filtering pinhole does. It's foolish to spend twice as much money for this level of fail over protection to prevent ads. It's not like if you see an ad you're going to die lol. If you're that opposed to them, sure, go for it, but you're better off spending your time doing other things to stop ads than maintaining two pi holes because one might fail.

And like the other person said, just use ad guard's public DNS. I use it on my router and on my phone.

[–] [email protected] 6 points 2 days ago (1 children)

Randomly? No, only when your pi goes down

Not how secondary DNS works. It round robins the requests across primary and secondary DNS servers.

[–] [email protected] 1 points 1 day ago (2 children)

Why call it secondary then, that's so counterintuitive lol 😭 I guess "the second hardest problem in computer science" applies because I can't think of a better name either.

[–] [email protected] 2 points 1 day ago

Why call it secondary then, that’s so counterintuitive lol

I don't think that's even the official naming. It probably comes from what Windows 95 called it back in the day:

On Linux, it's just an additional "nameserver x.x.x.x" line in /etc/resolv.conf, with no indication of which is the "primary" or "secondary".

[–] [email protected] 2 points 1 day ago* (last edited 1 day ago)

Different Operating Systems call it different things. Windows calls it Alternate. Even if it was only used when the primary was down, DNS doesn't provide any sort of guidance or standard on when to switch between primary and secondary. Is one query timeout enough to switch? How often do you reattempt to the first DNS server? When do you switch back? With individual queries, you can timeout and hit another NS server, but that's a lot easier at an individual level than to infer a global system state from one query timing out.