65 points · by misker1 · 2w ago · 52 comments
This is a stupid meme that became a truism that really needs to die.
Stop mystifying basic network services.
All you're doing is scaring people off from running their own independent services leading to further consolidation and monopolization of the web
Today, fire up Unbound and/or NSD, write a few simply-formatted files, maybe download the current root zonefile, if not included in the distribution, and go.
I used to know a lot about name resolution. I still remember some of it, maybe most! But I haven't thought about a DNS problem in decades, and I've been running nameservers of all kinds continuously. Moving away from BIND was the most important first step. djbdns/tinydns, and now the modern replacements, just work better in all ways.
Maybe (maybe) it's less true now, but that's because of lessons learned in sweat and lost hair over the previous quarter century.
So you can be dismissive of that experience, but that doesn't make it invalid. And it still happens today.
To me that recurring meme demonstrates just how clueless is today's "developer"... where "today" spans at least a decade
"No way around it, a custom authoritative DNS server had to be built (double yikes!)"
As an end user who has been running own DNS for over 15 years I have found one can quite easily use DNS to avoid the annoyances many of these "developers" are responsible for creating: data collection, surveillance, advertising, tracking, telemetry, etc.
Perhaps part of the reason is that these "developers" don't really understand how DNS works. I don't know. But the benefits of managing own DNS are for me even greater today than they were 15 years ago
But being able to blacklist hundreds of thousands, heck probably millions, of domains that are homoglyph attacks on my usual banking and brokers website is just too good to pass upon.
I started doing that after my broker sent me a warning by email about a phishing site that was a 100% perfect copy of the real thing. Basically:
mycoolbroker.com
vs: mycoo1broker.com
Of course I use 2FA etc. But I still wouldn't want my credentials phished and then using those an attacker could try to reset the 2FA.So I wrote a little piece of code generating a shitload of potential homoglyphic attacks on my most important sites' names.
I also blacklist a great many TLDs entirely. So many countries get null routed / NX_DOMAINed.
And so many ads disappear. And sk many domains serving porn and malware.
All going down the drain.
I love it.
As a side note I also reject trafic from a huge number of IP blocks (entire countries / entire ISPs / entire companies like Meta).
It s amazing how much of the Web / Internet keeps working just fine after all that.
It s also pretty much something you set up once then forget about it.
And I did all that in the pre-LLM days. Now it s even easier.
edit: oh, and the 10 year renewal, that's the top of the list.
There is a lot of complexity out there, but I have found many times that the solutions that protect you from that complexity are often as complex or more so.
Dark times, those were.
There are always trade offs of course but it would have the advantage of DNS spikes not impacting spanner.
Zero problems for last 15 years. Near-instant propagation.
Scaling options are great, as the amount of changes in records per second is generally small even if you have hundreds of domains
PowerDNS lets you plug in whatever data source you want, so you can build the control plane of your dreams. Meanwhile, you’ve got a performant and battle-tested piece of software handling actual DNS traffic.
About half of the domains were registered by us on behalf of the customer, while the other half delegated a sub-domain to us. There was also a small minority who hosted all of the DNS themselves.
The other interesting thing that I am starting to think more about is that every part of the infra stack will get slowly rebuilt because of AI. More load, more granular permissions, more firewalls are some of the things I can think that will need to be built in.
I find the following part of the article interesting.
These [DNS] records would need strong consistency too. When a basin is created, its address should be instantly resolvable, otherwise clients would be waiting around for a cached NXDOMAIN to expire.
DNS is, almost by design, an eventually consistent system. Strong consistency would mean authoritative servers for a zone have to coordinate updates and agree on the current state before answering queries. That would almost defeat the availability goals that date back to the very origin of DNS. To quote the very old RFC 1034: Access to information is more critical than instantaneous updates or guarantees of consistency
I am guessing S2 has clients query a specific DNS server directly so that there is strong consistency in practice. Also, it's unclear to me whether it's intended for records to propagate to other name servers. It'd be nice if the article included an appendix for people who don't know what S2 is (or how clients typically access the service).Clients use regular resolvers, no special server, accessed via http1/2. The funny thing is that we actually had a client who was relying on DNS being strongly consistent. Since that isn't really feasible, we asked them to add a small delay after creating a basin, and they did.
I agree with this. Offering instant updates creates a large performance benchmark, especially if you experience massive growth. Unless this is mitigated with TTL to some extent? I would personally be looking at how to reduce the database load for misbehaving clients e.g. 5 second cache on all queries or allowing a customer to choose a "tier" where they won't need fast instant updates. If they choose e.g. 5 minutes TTL, you can cache these extensively, even just as disk files rather than RAM.
* Not understanding what DNS is (eventual consistency etc.) * Round peg square hole problem ("oh we rely on the record updating instantly") * Using a Microsoft products to serve DNS
You could've just used PowerDNS + SQL backend. Near-instant updates, easily can handle far bigger traffic, easily scalable