RFC 1034: DNS concepts and delegation
Summary
In November 1987, Paul Mockapetris described the concepts of the Domain Name System in RFC 1034: a hierarchical name space, zones with delegated responsibility, authoritative name servers and resolvers with a cache. The system replaced the centrally maintained file HOSTS.TXT, which all hosts fetched by FTP from the Network Information Center. Together with RFC 1035, RFC 1034 is still the foundation of DNS today.
Why HOSTS.TXT was no longer enough
RFC 1034 states the reasons openly: the traffic needed to distribute a new host file grew with the square of the number of hosts, and local organisations had to wait for the NIC for every change. Instead of large timesharing machines, local networks full of workstations were increasingly attached to the ARPANET, and their operators wanted to manage their own names.
The answer was delegation: a name tree in which every node carries a label of up to 63 bytes is divided into zones, and each zone belongs to someone who maintains it. Name servers answer from their own authority or refer to servers closer to the information sought.
Recursion, cache and redundancy
RFC 1034 distinguishes iterative and recursive queries. A name server only has to work iteratively but may search recursively on behalf of clients; the simple client, a stub resolver, relies on exactly this service. Every answer carries a TTL that determines how long it may stay in the cache.
For availability, RFC 1034 requires every zone to be available on at least two servers. The rule is as self-evident today as it was then; errors in delegation and redundancy are nevertheless among the most common DNS failures.
Ideas
- A hierarchical name tree replaces a central host file.
- Zones divide responsibility along the tree.
- Authoritative servers answer from their own authority or refer onwards.
- Resolvers keep answers for as long as the TTL allows.
- Every zone should be available on at least two servers.
- Recursion is optional for servers and convenient for simple clients.
Insights
- DNS scales because it distributes administration organisationally, not just load technically.
- Caching with a TTL is a contract between freshness and load, set by the zone operator.
- The reasons against HOSTS.TXT apply to any centrally maintained list that grows with its users.
Facts
- RFC 1034 and RFC 1035 appeared in November 1987 and are Internet Standards.
- A DNS label may be at most 63 bytes long.
- RFC 1034 requires at least two name servers for every zone.
- Numerous later RFCs update RFC 1034, including RFC 2181 and the DNSSEC documents 4033 to 4035.
References
- RFC 1034: Domain names - concepts and facilities
- RFC 1035: Domain Names: Implementation and Specification (1987)
- RFC 2181: Clarifications to the DNS Specification (1997)
- RFC 4033: DNS Security Introduction and Requirements (2005)
Remarks
- The file /etc/hosts on every Unix system is a direct descendant of HOSTS.TXT and is consulted before DNS if nsswitch.conf says so.
Recommendations
- Run authoritative name servers in separate networks and with different providers.
- Lower TTLs in good time before planned moves and raise them again afterwards.
- Check delegations regularly with dig +trace to find orphaned or wrong NS records.
Read the RFC at the RFC Editor
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.