dns-drive
Linux that boots from DNS. A VM with no disk gets its kernel and root filesystem out of TXT records, and in the full version writes the disk back with RFC 2136 UPDATE messages.
// Press Boot. Your browser makes about 250 DNS-over-HTTPS queries (8 MB), then runs Linux in an emulator. Keyboard needed. The VM has no network.
A virtual machine with no disk gets its operating system out of DNS TXT records: the root filesystem, and with a 52 KB loader in front, the kernel too. It began as an excuse to implement RFC 2136, the DNS dynamic update protocol, end to end.
In your browser
The player above is the whole idea with no install. A page of JavaScript plays the part of the boot loader: it asks for a 32-bit kernel (129 TXT records on the Worker) and the BusyBox userland (117 TXT records in this site’s own DNS zone, read through Cloudflare’s public resolver), using nothing but DNS-over-HTTPS queries. It then starts both in v86, an x86 emulator compiled to WebAssembly. Open the network panel while it boots and every request is a DNS lookup.
Four ways to put Linux in DNS
In each of these a kernel and a 2.5 MB initramfs boot first and fetch the rest.
| Where it lives | Size | Writable | |
|---|---|---|---|
| Disk | an ext4 image, one TXT record per 16 KiB chunk | 64 MiB, about 560 records | yes |
| Record | one TXT record of raw binary | 57 KB of a 65,535-byte maximum | no |
| Shell | one plain-text TXT record | 2,280 characters | no |
| Parts | plain-text TXT records p0, p1, … |
117 records | no |
Disk is the full version. Alpine runs with a persistent root filesystem whose blocks are TXT records. Reads are ordinary queries. Writes are UPDATE messages signed with TSIG, and sync returns only when the server has acknowledged every one. apk add works, and files survive a reboot.
Record shows the protocol ceiling: a DNS record holds at most 65,535 bytes. BusyBox’s shell alone compresses to 63 KB, so this userland is sash, an old standalone shell made for rescue disks.
Shell fits ordinary hosted DNS, where a record is a couple of kilobytes of text. Its entire userland is one 2.6 KB static binary with no C library, acting as both init and a shell with ls, cat, echo, cd and ps.
Parts removes the limit by splitting the image across names. That one is BusyBox with sh, vi, grep, sed, top and wget.

This site’s DNS is hosting two of them
The Shell and Parts versions live in the zone for this domain. Anyone can read them:
dig +tcp TXT shell.dnslinux.manvsmidi.com @1.1.1.1
dig +tcp TXT dnslinux.manvsmidi.com @1.1.1.1 # "dnsdrive-parts=117"
With the repo built, this boots BusyBox from those records through Cloudflare’s public resolver:
SERVER=tcp://1.1.1.1:53 RECORD=dnslinux.manvsmidi.com scripts/run-qemu.sh
The kernel too
The last step removes Linux from the machine entirely. dnsboot.efi is a 52 KB UEFI program. The firmware starts it, it brings up the network with the firmware’s own TCP/IP stack, pulls the kernel and initramfs out of 240 TXT records, and starts the kernel through its EFI entry point. The boot then carries on as before, so the video’s last scene goes from firmware to a writable Alpine root with every byte of Linux arriving through DNS.
It has to use plain HTTP to carry the queries, because stock firmware trusts no TLS certificates, and the 14 MB kernel is far too big for hosted DNS (about 8,700 records), so it lives on the Worker described next.
The server
Hosted DNS does not accept RFC 2136 updates; Cloudflare and Route 53 only change records through their own APIs. So the Disk version needs a server you control. It works against stock BIND, and the repo includes its own authoritative server that runs on Cloudflare Workers: DNS over HTTPS in front of a SQLite Durable Object, with every prerequisite and update form from the RFC, and TSIG on requests and responses. Checked against BIND with nsupdate, the result codes matched for every operation tried.
Workers cannot listen on port 53, so the transport is HTTPS, but the messages are ordinary DNS wire format. A small proxy in the client lets dig and nsupdate talk to it.
The client
dnsdrive is one static Rust binary of about 2 MB: DNS wire format, UPDATE, TSIG, and a block device. It hands the kernel one end of a socketpair through the NBD ioctls and answers block requests on the other, so there is no separate NBD server. A chunk of zeros is stored as no record at all, which means empty disk space costs nothing.
Things learned
- Cloudflare documents a 4 KB limit per record, but its API accepted 2,300 characters of TXT content and refused 2,600.
- A new free zone holds 200 records, so the Parts approach tops out around 300 KB of compressed image.
- Answers this size need TCP, so
digneeds+tcpand a resolver that answers on it.
Limits
Something local always runs first, even if it is only the 52 KB loader. The writable disk has one writer: two machines attached to the same disk will corrupt it. Its ext4 image has no journal, to save updates, so losing power mid-write can mean a filesystem check. And the browser version is read-only with no network inside the VM.
Real World Implications
This is a toy, and it deliberately uses DNS for something DNS was not designed to do. That is worth taking seriously for two reasons.
What is weak about this system
- Nothing that boots is verified. The read-only versions run whatever the resolver hands back, as root. The loader fetches its kernel over plain HTTP, because stock firmware trusts no TLS certificates. Nothing is signed or hashed, and the zones are not DNSSEC-validated. Whoever can change the answers (the DNS host, the resolver, or the network in between) controls the machine. A real design would pin a hash of the image in the loader, or use a verified-boot scheme such as dm-verity.
- Reads are open. TSIG protects writes only. Anyone who can reach the server and guess the record names can read the whole disk, so nothing private belongs on it.
- One shared secret. A single key grants write access to the entire zone. In this demo it is passed on the kernel command line, where every process in the guest can see it. There is no per-disk scoping and no rotation.
- No protection against replay or rollback beyond TSIG’s time window. A captured update can be replayed for a few minutes, and nothing stops a server from serving yesterday’s disk.
- It is a public endpoint. Anyone can query the Worker as often as they like, and a leaked key would let someone fill its storage. Large TXT records on a server that answers over UDP can also be abused to amplify traffic at third parties; this server avoids that by speaking only HTTPS.
Why networks watch DNS
DNS is allowed out of almost every network and is usually inspected less closely than web traffic. A system that moves arbitrary data in and out through DNS records therefore looks, to a defender, the same as tooling that hides data transfer or code delivery inside DNS. None of this is new; the reason to spell it out is so it can be recognised:
- bulk TXT traffic, unusually large TXT answers, or high-entropy names and record contents under a single domain;
- DNS UPDATE messages leaving a network that has no reason to send them;
- DNS-over-HTTPS to endpoints other than the organisation’s own resolver, which hides the queries from DNS logging.
The browser demo on this page is a fair illustration of the last point. To the network it is a few hundred HTTPS requests to two Cloudflare hostnames, and what arrives is a running operating system.
The usual controls apply: send clients through a resolver you log, block or alert on direct DNS and unapproved DoH, restrict who may send dynamic updates, and alert on the volume and entropy patterns above. If you run this project on a network you do not administer, expect it to trip those alerts, and ask first.
Finally, using a DNS host’s zones as general file storage may breach its terms of service. What is published here is a few hundred kilobytes in a zone its owner controls.