Developer builds a Doom emulator running entirely on DNS lookups
in plain words
A programmer named Corey Quinn turned the internet’s DNS system, normally used to translate website names into addresses, into a makeshift computer that can run the classic game Doom. It works, but incredibly slowly, taking many seconds just to register a single button press. He got help from Paul Vixie, one of the original creators of the DNS software BIND, to speed things up, though it is still far too slow to actually play in real time.
Full summary
Corey Quinn, writing for The Register, documented his project to build a working computer out of DNS Domain Name System The internet's directory that links domain names to computer addresses. Full definition of DNS, the Domain Name System normally used to translate domain name A readable internet name made of labels separated by dots. Full definition of domain name into IP Internet Protocol The internet's basic rules for sending data, using numeric addresses for every connected device. Full definition of IP. Quinn argues DNS is fundamentally a database, and since databases can store answers to arithmetic and logical comparisons, they can in principle be chained together into a functioning instruction processor with enough lookups.
Quinn used this idea to build a 32-bit virtual machine whose arithmetic and memory are entirely represented through DNS record One entry in a DNS zone, made of a name, a type, a TTL and data. Full definition of DNS record, with a small supporting program providing clock and wiring functions that DNS itself lacks. He then compiled Doom to run on this DNS-based machine.
The result works only in a turn-based fashion, far too slowly for real-time play. In his first attempt, pressing the right-arrow key took 577 seconds to register, since a single 32-bit addition requires four DNS lookups, a branch takes five, and rendering a full frame needs about 6.6 million lookups. BIND, the name server A server that holds a domain's DNS records and answers lookups. Full definition of name server software he used, answers queries in roughly 7 microseconds over TCP and 4 microseconds over UDP, but the sheer number of lookups required dominates runtime.
Quinn published his code and contacted Paul Vixie, the DNS pioneer and architect of BIND 8, for help. Vixie praised the project as the best use of RFC Request for Comments A numbered document in the series recording the internet's technical standards and practices. Full definition of RFC 2136 dynamic DNS Automatic updating of DNS records, often for connections whose IP address changes. Full definition of dynamic DNS he had seen, though Vixie is a co-author of that specification himself.
Quinn then optimized further by committing registers to DNS less frequently, shifting lookups to UDP, disabling BIND’s padding of answers with authority records, and reducing lookups needed per instruction. These changes cut the time to register a single keypress from 577 seconds to 146.3 seconds, and eventually to 54.4 seconds, a 10.6-times improvement overall.
Quinn calculated that even under near-ideal conditions, with one DNS exchange per instruction, executing the roughly 1.4 million instructions needed per frame would still take about 14 seconds, far short of Doom’s intended tic rate of 35 frames per second, meaning the project remains a PoC or proof of concept rather than a playable version of the game.