DNS Explained Through Its Limits
There are many good introductions to the Domain Name System. This one takes an unusual route: it explains how DNS works by looking at its limits, because each limit tells you something about the design.
Limit: 63 characters per label
DNS names travel as a series of labels, each preceded by its length. Two bits of the length byte were reserved to signal compression pointers, leaving room for lengths up to 63. What it says: DNS was designed to be compact on the wire, reusing parts of names already in a message.
Limit: 255 octets per name
The whole name, in its wire form, is capped. What it says: implementations were expected to use fixed-size buffers, and the cap keeps them safe.
Limit: 512-byte UDP messages
Classic DNS used small UDP messages, with TCP as a fallback for larger ones. What it says: DNS was built for speed and simplicity, with one round trip for most lookups. EDNS(0) later allowed larger messages, because DNSSEC and modern records outgrew the old size.
Limit: one CNAME, alone
A name with a CNAME cannot have other records. What it says: a CNAME means "this name is really that one", so it cannot also have its own data.
Limit: TTLs
Every record has a time to live. What it says: DNS is a distributed, cached database. Scale comes from caching, and caching means changes take time to be seen.
Limit: delegation
Each zone is answered by its own servers, delegated from the parent. What it says: no single organisation runs all of DNS. The root delegates to TLDs, TLDs delegate to your domain.
| Limit | Design idea |
|---|---|
| 63-character label | Compact encoding with compression |
| 255-octet name | Predictable buffers |
| 512-byte UDP | Speed, one round trip |
| CNAME exclusivity | Aliases are whole names |
| TTL | Scale through caching |
| Delegation | Distributed authority |
Putting it together
A lookup starts at a resolver, which asks the root, then the TLD, then your domain's servers, caching each answer for its TTL. Everything else, from DNSSEC to IDNs to new record types, was added on top of this structure without changing its core.
Why this way of explaining helps
People who understand why a limit exists can predict what will break. People who only memorise limits are surprised each time.
Limits that came later
Some limits are not in the original design but in later standards built on DNS: the ten-lookup rule for SPF, the 255-character TXT string rule as it affects DKIM keys, and practical response-size limits once DNSSEC signatures are added. They follow the same pattern as the originals: each protects a system that runs at enormous scale from a few expensive queries or oversized answers.
A practical way to see the design
Run a lookup with a command-line tool that shows each step of resolution from the root down. Watching the delegations and TTLs in real output makes the design described above concrete.
This post is editorial opinion for general technical information. RFC 1034 and RFC 1035 describe the original design.