LATEST UPDATESEnglish
EEULOL NewsA curated stream of attributed news links
Stay close to the storiesA clear view of source-attributed news headlines.
Technology

No shame in the Domain Name game: DNS is doomed, literally

Fancy a bit of fun? It's always DNS

No shame in the Domain Name game: DNS is doomed, literally

columnists

Fancy a bit of fun? It's always DNS

READ MORE

AWS got hit by an outage too. Here's why you didn't hear about it 1 day ago

Amazon's split personality: AWS embraces bot commerce while main site enforces bans 2 days ago

TfL takes Oyster photocard website offline after attackers compromise customer accounts 3 days ago

GTA VI didn't break the internet, thanks to 'stupid DNS tricks' 3 days ago

REIT move? Blackstone joint venture buys AWS campuses to lease back to the cloud giant 5 days ago

What is DNS? That's right, it's a database. You can disagree with me but you would be wrong.

What can you put in a database? Strings, ints (and you learn the difference right quick if your AWS account ID has a leading zero!), JSON objects, coordinates; some of the databases out there have some pretty esoteric types. PostgreSQL supports circle, a polygon, a macaddr8, and a tsquery. Oracle will store a ROWID and your dignity. In a word, databases store data.

Can you put answers in a database? Well sure; you could record that "3 + 2 is equal to 5" and store that answer. You can do the same with comparison operators; "3 is larger than 2" and so on. Take it a step further and you've built something with your database: a remarkably inconvenient calculator.

So now we've established that you can store arithmetic and decisions in a database. And what can we do with those things? That's right, we can follow instructions! Good job! And what does following instructions require? Generally, memory; a place to store your numbers, your instructions, and which instruction comes next. If only we had a place to store those things. Oh right, we do; we have a database!

Now connect those lookups together. Read an instruction, look up an answer, save the result, repeat as needed. So what have we built? That's right: a computer! And what can a computer run? Programs! My, you're quite good at this.

And now, gentle reader: what program do we apparently have a moral obligation to run on every computer? Oh yes, though many of you are going to sit back and instead say "oh no" as the horror courses through you. I am talking about Doom. This very publication agrees with me!

What have I done?

That's right; I have compiled Doom for a 32-bit machine whose arithmetic and memory live in DNS. A small program supplies the wiring and the clock, neither of which the architects of DNS saw fit to include. But DNS does supply the answers.

So, can we play Doom? Only if it's turn-based. It won't render on human timescales anyway. In my first attempt, I pressed Right, and then waited for 577 seconds to find out what happened. By using native transport, pipelining, packing registers densely, and optimizing instruction blocks, I was able to drop that to 146 seconds, before I hit a wall. BIND answers in about 7 µs per query over TCP and 4 µs over UDP, which is fast. The problem is that a 32-bit add is four DNS lookups, a branch is five, and a frame needs 6.6 million of them, so don't use a server that charges per request.

And what do we do when BIND isn't performing the way we want it to?

I don't know what you do, but I publish my code, then reach out to Paul Vixie, DNS pioneer and architect of BIND 8 to unjustifiably complain.

Paul then apparently congratulates me on "the best use of RFC 2136 DNS UPDATE" that he'd ever seen. Given that he's a co-author of that RFC, I suspect he's seen a lot!

Which was gratifying, but unhelpful. So let's take another crack at it. What if I do lookaheads? Good thought, bad outcome, because BIND is bound by message count, not chain depth. Well okay, I have some more tricks in my Big Bag of Stupid Ideas. So I went a bit further and via committing registers to DNS less often, moving lookups to UDP, telling BIND to stop padding answers with authority records, and requiring fewer lookups per instruction, I was ultimately able to get that press-right time down from 577 seconds to 146.3 seconds to 54.4 seconds, for a 10.6x improvement. And now I think I have hit a wall. Even at one DNS exchange per instruction (which is far better than anything realistically achievable), 1.4 million instructions at roughly 10 µs each is 14 seconds per tick. Doom says its tic rate is 35 per second, so "playable" is a tic every 28.6 ms. I remain at 54,000 ms, which is three orders of magnitude away from victory.

Okay seriously, WHAT?

This legitimately works. Every commit is an RFC 2136 UPDATE with a hard requirement: it fails unless the previous state is still exactly what was last written. Apparently "real" database people call that optimistic concurrency, or compare-and-swap. Joke's on you, friends; DNS has shipped with that since 1997; has your inferior database?

The database itself is 6.4 million rows of truth tables. ff.01.0.add holds "001": 255 plus 1 is 00 carry 1. DNS is just acting as a librarian here, fetching memorized answers to any arithmetic question in-scope and returning the answer upon request.

It's also verifiable! The frame that's spat out is checked on every pixel against an independent emulator. If one record is corrupted in the AND table, the answer changes, which proves there's no local fallback doing arithmetic for us. I've included tooling so that reviewers can run two commands against that repo and verify correctness.

I also confess I cheated slightly here; the run I'm pulling these numbers from started from a checkpoint prepared by a normal emulator. It turns out that for SOME UNKNOWN REASON getting a cold boot through Doom's startup screens via DNS would take hours. Also, before the timer starts, DNS has to load those 6.4 million records, so it's a computer that takes roughly a minute to boot before it can even start.

We can't cheat

This runs atop nothing special: Debian's stock BIND 9.20, configured through named.conf. It lives in a container with networking disabled.

I want to be very clear here: this isn't DNS pretending to be a CPU. The instruction decoding is done ahead of time by a compiler; BIND never executes an instruction itself. All that it sees is a key-value read, a conditional write, and 6.4 million rows of precomputed answers.

So instead, think of this monstrosity as a database with a key-value read, a conditional write, and 6.4 million rows of precomputed answers. It's not really a computer; it's simply a very good database. And that turns out to be enough. ®

$1 of GPT-5.1 tokens finds new ways around China’s Great Firewall

PLUS: Lenovo's infra group finally makes big profit; Indonesia’s glaciers are gone; Australian bank releases its AI bug-finder; and more!

As cars go digital, US consumers pay an extra $12 billion a year for repairs

Today's vehicles need software tools to make repairs, and the subscriptions inflate insurance fees

Cyber insurers now want proof you can actually recover

PARTNER CONTENT: As carriers tighten underwriting, a backup job marked green is no longer enough. Here’s the evidence underwriters expect

Passive 'ghost' radar can detect airborne threats without revealing its own position

Kit piggybacks off TV and mobile signals and can be neatly stuffed into an SUV

AWS got hit by an outage too. Here's why you didn't hear about it

If a service falls in the forest and nobody hears it...

Come for the science, stay for the big iron: Supercomputer admin on why he loves the job

From the dotcom bubble to 200,00 cores of raw power

TOP STORIES

Microsoft's official Python agent framework hijacked to distribute malware

Microsoft blames monster email outage on software defect introduced in July fix

Optimizely hack turns world's biggest websites into malware dispensers

'Not rocket surgery' claims researcher who found six Danfoss fridge controller zero-days in under an hour

UPDATED Another critical PHP security release has dropped

ON CALL Support tech fixed malware by charging client less for their services

AI

Security shop buys the hand that feeds it

SC26

Selected customers can put Dragonfly AI200 through its paces on Cirrascale's cloud

AI has birthed some truly colossal supers, they just aren't on the Top500

Nvidia unveils an HPC-optimized Rubin GPU to challenge AMD's 288 teraFLOPS MI430X

Ride-hailing biz says stolen credentials allowed crooks to help themselves to driver's license data

Infosec

Security

PLUS: US takes down Iranian propaganda sites; Marketing company asks 'Why Do We Have Your Information?' And more!

Security

PLUS: China upgrades smartphone surveillance tools; Ring eases anti-snooping stance; and more

Black Hat and DEF CON

Voting village reports have been so successful, says Jeff Moss, that the whole of DEF CON will now be included

Security

Went at equivalent of $3.5B+ valuation for entire firm, though portion sold not specified

Malware Month

On the plus side, infosec's a good bet for a long, stable career

FOSS

Canonical's stretch goal is to make the immutable OS standard in 30.04 – without retiring the traditional distro

Cheap tiny e-readers and the perils of LLM-generated drive-by pull requests – plus much more

Devuan-based distro swaps Wayland for XLibre and i3, with Xfce waiting if the tiling gets tiresome

Version 4.0 of Redmond’s cloudy OS is free to use in its cloud. Repeat. Free to use

You can probably guess what he blames for the excessive workload

Only a minority want to ban it. Plus plenty of updates on 16 projects