The Domain Name System: built in 1983 to avoid one central database, it still hinges on a root every lookup must reach

Illustrative photo: The Domain Name System built in 1983

At 21.29, a heavy safe door swung shut with a bang, and the lock caught. Inside an 8ft cage stood the ceremony's administrator and the keyholders, who had come to handle the cryptographic key at the top of the internet's naming system. The door would not open.

They had a script, more than 100 actions long, with every step logged in GMT, but no line in it covered this. After six minutes they got out the only way left: they triggered an alarm and an evacuation, and the room emptied into the corridor.

The place had been scrubbed for the occasion. The day before, Eklund Löwinder had gone over the ceremony room with a $20 dustbuster, as if a stray crumb were the likeliest threat to the night. Nobody had planned for a door. The ceremonies have run quarterly since 2010, twice on each coast, and each of the 14 primary keyholders carries a metal key to a safety deposit box holding a smartcard.

So a naming system built so that no one would hold all of it now leans on a few people, a few keys and a cage with a bad door. The answer to how that happened starts in 1983, with a researcher who set out to give control away.

Photograph: Paul Mockapetris
Photograph: Paul Mockapetris. Photo: Jordiipa. Wikimedia Commons · CC BY-SA 3.0. Resized and converted to WebP; no retouching.

Add your computer by phone, business hours only

The phone rang at SRI's Network Information Center, and the caller had to reach it during business hours. A new computer wanted a place on the ARPANET, the research network that was the ancestor of today's internet. Someone on Elizabeth Feinler's team picked up, took the name and the number, and added the machine to the master file by hand. That file was a plain text document called HOSTS.TXT, and it matched each host name to the numerical address of an ARPANET computer.

Feinler had developed and maintained the first ARPANET directory, and she and her team ran the Host Naming Registry from 1972 to 1989. For a small network, a telephone line and a text file made a workable system. Every name on the network passed through one office, and every entry was placed by a person.

Then the network kept growing. By the early 1980s the single centralized table had become slow and unwieldy. The file was mapped by hand and maintained at SRI, and then it had to be distributed to every computer on the network. A call at one end of the line meant a new copy to be delivered to every machine at the other.

The network needed an automated naming system, one that could add names without a person on the phone and a table passed from machine to machine. Someone would have to replace the file itself.

Told to compromise, he built something else

Jon Postel knew the problem from both ends of the telephone line. At the University of Southern California's Information Sciences Institute, he handled the Assigned Numbers List, and his team worked closely with SRI, where the calls for new host names kept coming in.

Postel now gave a young researcher an assignment that sounded sensible. Five competing proposals were on the table, each with its own idea of how the network should name its machines. Paul Mockapetris was to forge a compromise among them.

A compromise had a cost. Five camps would each have to give something up, and the network would grow while they bargained. Splicing five designs into one would also likely produce a patched-up HOSTS.TXT, a bigger version of the same file. Mockapetris saw the trap and took another road.

In 1983, at the same Information Sciences Institute, he created the Domain Name System instead. Years later, IBM would describe the USC computer scientist as the inventor of DNS, and the credit rests on that year's work.

The first written specifications came out that November as RFC 882 and RFC 883. An RFC, or "request for comments," is the open memo format the network's builders used to publish their ideas. The two documents described a system with a clear refusal built into it: no single large central database, the thing Feinler's office had become by necessity.

In its place stood a hierarchical, distributed database, designed from the outset to keep pace with a growing network. Each part of the data would live in a different place, and no one machine would carry the whole.

On paper, that solved the phone line and the file passed from machine to machine. But a design that scatters the data also scatters the power over it. How could a system give control away and still work as one?

The parent lets go

The administrator wanted a corner of the namespace that belonged to him, with his own machines and his own rules, and Mockapetris had a way to give it to him. The raw material was already on the table. Feinler and her team had developed the concept of domains, and under their scheme the computers at educational institutions would carry the domain edu.

Mockapetris took that idea and attached a power to it. In his design, administrators could delegate authority over subdomains to other name servers. Each subdomain became a zone of administrative autonomy, handed over to a manager who ran it.

The handoff had a price, and the parent paid it. Once authority over a zone was delegated, the parent zone ceased to be authoritative for it. The parent could say who now ran the zone, but it could no longer vouch for what the zone contained.

One snag nearly undid the scheme. Suppose the manager's own name servers lay inside the domain just delegated. A resolver, the program that looks names up, would ask the parent where to find the domain and be told to ask a server whose name lives in that same domain. To find the server, it would first have to ask the server. Mockapetris's answer was the glue record. The parent must hold the IP addresses of those child name servers, so the resolver has a numeric address to go to and never gets stuck in the loop.

A zone left to a single machine would be fragile, so the design guarded against that too. Data was stored redundantly in two or more name servers. Secondary servers kept an identical copy of the primary's records through a special automatic updating mechanism, so a dead machine did not take a zone off the network.

When a resolver sets out to find any name at all, it has to start its search somewhere.

Every lookup begins by asking the root

A resolver, the program that looks names up for a user, has a university's address to find, and it begins with almost nothing. Its host was configured with hints: a short initial cache holding the addresses of the root name servers. Those few numbers are all it knows of the world.

The resolver reads the name from the right. The right-most label, the top-level domain, comes first, and the resolver works through a sequence of queries from there. To learn who handles that label, it asks a root server, because root servers serve the top of the hierarchy and are queried whenever a top-level domain must be resolved.

The root cannot give the address of the university. What it holds is the root zone, the central database of the DNS, and the zone says only where to go next. The root points the resolver toward the servers for the domain below, and each of those points further down the chain until a server finally knows the answer.

The person who typed the name sees none of it. The resolver hides how the data is spread among the name servers, and a single question from a user may turn into several questions to several servers. The answers are not wasted, either. The resolver keeps each one for a period set by its time-to-live value, so the next lookup can skip the steps it has already taken.

Every search that starts cold still starts at the root, one door for a structure meant to have none. The designers kept the number of root name servers at 13, a limit that is technical. Anycast then loosened the limit: it lets far more physical servers than 13 answer root queries, all behind those same identities.

Someone still had to write the software that made all this run on real machines. Who did it?

Four students write the code that makes it real

Four graduate students at UC Berkeley sat down in 1984 to turn Mockapetris's design into a program that would run on Unix. Their project had begun as ordinary academic work, funded by a DARPA grant, and it produced the first Unix name server. They called it BIND.

A year later a new hand joined. Kevin Dunlap of DEC, the Digital Equipment Corporation, was on loan to Berkeley's CSRG, the group that built the university's version of Unix. He revised the implementation substantially and kept working on BIND until 1987.

The paper underneath it was still shifting. The 1983 specifications had to be read as they stood, with gaps that implementers filled by judgment. In January 1986, RFC 973 arrived to update them. It patched the original documents and did not replace them, so Dunlap's code and the specs it followed were being corrected at the same time.

Meanwhile the network did not wait for tidy paperwork. By 1985 the DNS had become an essential part of the Internet, and every new machine that joined it leaned on the naming system a little more.

The paperwork caught up in November 1987. Mockapetris, now writing from ISI, published RFC 1034 and RFC 1035, and together they superseded the 1983 specifications. RFC 1035 said so outright: it obsoleted RFCs 882, 883 and 973, the very documents he had started with and the patch that had followed them. The man who wrote the first draft of the design also wrote its replacement.

Every one of those lookups began at the root, and the root needed someone to manage it.

Who put ICANN in charge? Nobody agrees

In 1998 the job of managing the DNS changed hands. The work passed to IANA and then to ICANN, the organization that still oversees the root today.

Mockapetris had spent 1983 designing a system that gave authority away. Now the question was who had given ICANN its own. Nobody agrees on the answer, and the dispute is hot. Löwinder, one of the keyholders who guard the root, says it was mainly the US Department of Commerce that put ICANN in charge.

Russia and Brazil called for an overhaul and suggested that the United Nations take charge, while the European Commission wants changes and says it still has faith in ICANN.

That answer carried a weight it had not carried before. The US Commerce Department and Homeland Security both take an interest in how ICANN operates, and ICANN's part in internet security has drawn criticism. Then came the NSA revelations. ICANN's overseas partners, who had lived with the American role for years, grew uneasy about it.

Some wanted the arrangement torn up. Russia and Brazil called for an overhaul and suggested that the United Nations take charge. The European Commission took a middle road. It wants changes, yet it still says it has faith in ICANN.

Each lookup that began at the root passed through this quarrel without any sign of it on the screen.

How do you make trust something people can touch?

Fourteen keys, one lost cause for trust

At the first ceremony in Culpeper, Virginia, Cerf called the single master key a milestone. The people who would guard it had been chosen with little fanfare: 40 applications came in for 21 positions. Cerf was the one keyholder who stepped down, citing travel.

Fourteen primary keyholders each hold a metal key of their own. Backups carry smartcards loaded with code fragments, enough to rebuild the machine that generates the key if it ever fails. The stakes grow with every network that joins the secure system. Lose the master key once everyone has moved over, and the effects would be far graver than they would be today. A reporter has raised the opposite fear: a stolen copy might let attackers redirect their targets to places of their choosing. ICANN calls that unlikely.

Yet the safeguard for its root comes down to a few people, a few pieces of metal and a room where they have to be present. Burkov, one of the keyholders, says internet governance always comes down to trust. The authors of Oblivious DNS, a proposal to hide who is asking, put the weight of that trust in plain terms: virtually every Internet communication involves a DNS lookup.

Back in the cage, the safe door has shut and the keyholders are standing behind steel with an administrator, waiting out the alarm. Everything they came to protect sits a few feet away, and for those minutes they cannot reach it.

Cover: NOIRLab/NSF/AURA/T. Slovinský · CC BY 4.0 · Wikimedia Commons. Layout and headline text by Signal Titans.

Source: Paul Mockapetris and DNS: The 1983 Blueprint That Turned Host Names Into a Global Address System · [2207.07486] Securing name resolution in the IoT: DNS over CoAP · [1806.00276] Oblivious DNS: Practical Privacy for DNS Queries · Meet the seven people who hold the keys to worldwide internet security | Internet | The Guardian · What Is DNS (Domain Name System)? | IBM · RFC 6864: Updated Specification of the IPv4 ID Field | RFC Editor · RFC 1035: Domain names – implementation and specification | RFC Editor · The History of BIND – ISC · DNS Zone | What is a DNS Zone? – IONOS UK

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *