Summary

  • CNAME made one DNS owner name an alias to exactly one target. To stop the alias and its destination from contradicting each other, the alias owner had to surrender ordinary A, MX, TXT, NS and other application data.
  • A resolver caches the CNAME and restarts the lookup at the target. The source zone owns the detour; the target's authority owns the eventual data. Neither act is a delegation, an identity proof or a service guarantee.

A name was asked to do two jobs and told to pick one

Picture the argument. portal.example is published as a CNAME pointing at service.example.net. A client asks for its address; the source server hands back the alias, and the resolver trots off to the target. Now let the source also publish its own A record for portal.example. Which address should a cache believe — the one stapled to the old name, or the one waiting at the end of the detour?

Most Internet design debates end in a committee. This one ended in a deletion. In RFC 1034, published in November 1987, Paul Mockapetris made CNAME a special resource record: the owner name is the alias, the RDATA names the canonical destination, and if a CNAME sits at a node, nothing else ordinary may sit beside it.

That was more than tidy zone-file housekeeping. The specification gave two architectural reasons. Data for a canonical name and its aliases must never be allowed to diverge. And a resolver holding a cached CNAME must be able to use it without running back to the source authority to ask whether some other record type at the same owner quietly contradicts the detour.

Exclusivity therefore manufactured a small, sharp piece of authority. The cached CNAME does not say what address, mail exchanger or service exists. It says where the resolver must go to resume asking.

The answer rewrote the question

CNAME is not a second spelling handed back as inert data. It changes how DNS processes the query. If the requested type is not CNAME, RFC 1034 instructs the name server to copy the CNAME RR into the answer, replace the working QNAME with the target name, and return to the top of the lookup algorithm. A query for CNAME itself is the exception: the caller asked to inspect the detour, so resolution politely declines to follow it.

The modern vocabulary in RFC 9499 makes the movement visible. The original QNAME is the name placed in the question. An effective QNAME is any name actually resolved after a CNAME step. The final QNAME is the last name in the chain. A single DNS response may therefore echo the original question while carrying an answer whose owner is the final name — the question and the answer no longer describe the same thing.

That distinction earns its keep when the far end fails. The alias may exist and be answered authoritatively even when the target is absent, temporarily unreachable, or run by an entirely different zone. A negative result at the final QNAME does not retroactively prove the original alias never existed.

A detour is not a deed

DNS delegation and DNS aliasing both send a resolver somewhere else, but they hand over different things. An NS RRset at a zone cut names the servers that hold authority for a descendant zone. A CNAME stays data published by the authority for its own source name. It tells the resolver to start another lookup; it does not hand the source zone to the target operator.

The source-zone administrator can create, change or delete portal.example and set its TTL. The operator authoritative for service.example.net controls the target's A, AAAA or other terminal data and their TTLs. The source does not acquire authority over the target by pointing at it. The target does not acquire the right to edit the source alias.

RFC 6604 later tidied up status handling across CNAME and DNAME chains. A response can be authoritative for the alias step and still carry a referral or a failure that arises later. Authority over the first statement is not authority over the whole journey.

One alias, one target — not one machine, one name

The word "canonical" invited an overreach. It could sound as though DNS permitted every host or interface only one official name. RFC 2181 rejected the inference outright. DNS imposes no general one-name identity rule on a host.

The narrower rule is exact: one CNAME owner has one canonical target. RFC 2181 also warns that calling the owner "a CNAME" muddles the direction. The owner is the alias; the domain name inside the record is the canonical name for that alias operation.

That precision keeps protocol state separate from identity claims. Several domain names can legitimately lead toward the same service. A name can carry multiple ordinary RRsets when it is not an alias. What it cannot do is declare itself a CNAME detour and simultaneously insist on being an independent destination.

Why the zone apex could not take the shortcut

The exclusivity rule leaves a familiar structural bruise. A zone apex must carry SOA and NS data. Since a CNAME owner cannot also carry those ordinary records, the apex cannot be an ordinary CNAME.

RFC 1912 recorded how dangerous the tempting configuration could be. Its historical BIND example placed a CNAME beside apex NS records; the server could prefer the CNAME and ignore the rest, making every name beneath the zone vanish. The exact behaviour belongs to the implementations of that period, but the conflict belongs to the data model itself.

Services that synthesize address answers or "flatten" an apex may offer genuinely useful product behaviour. They do not change what a CNAME RR means on the wire. Calling every provider convenience "an apex CNAME" erases precisely the distinction operators need when diagnosing authority and caching.

Some positions could not tolerate an alias at all

The rule also reaches records that carry other domain names. RFC 2181 says an NS target and the exchange part of an MX record must not be aliases. Queries for NS and MX trigger additional-section processing: the server can append address records for the named server or exchanger. That processing does not chase a CNAME and then append addresses for the canonical target.

Putting an alias in those positions adds queries and network load; in hard cases, especially around delegation, the missing address can make resolution fail outright. The administrator who writes the NS or MX data is expected to resolve the alias once and publish the direct name that owns address records.

This is not a universal ban on domain names pointing at other names. It is a rule about where an implicit extra resolution step would quietly undermine a protocol path that depends on predictable address discovery.

DNSSEC added proof without restoring a second destination

The phrase "no other data" acquired an important qualification as DNSSEC evolved. RFC 2181 allowed the security records of its time beside CNAME. RFC 4034 later required RRSIG and NSEC records at a CNAME owner in a signed zone.

Those records do not compete with the target. RRSIG authenticates the CNAME RRset; NSEC participates in authenticated denial and type evidence. They prove the state of the alias node. They do not hand that node an independent address, mail route or text payload.

RFC 4033 keeps the security claim bounded. DNSSEC supplies data-origin authentication, integrity and authenticated denial when validation succeeds. It does not turn the target into an authenticated application, a healthy service, a contractual counterparty or the legal owner of the source name.

Chains were tolerated; loops were not

One alias may lead to another. RFC 1034 advises against multiple levels because every step adds work, yet it never makes a finite chain an error. Resolvers must instead catch loops and aliases that end at nonexistent names, and return an error condition to the client.

The operational object is therefore a graph, not a string substitution. Each edge has an owner, an authority, a TTL and possibly a DNSSEC state. The last name has its own records and its own lifetime. A chain that worked from one cache can fail from another while old edges expire at different moments.

That is the price of decoupling. A source operator can move a familiar name without duplicating target data. A target operator can change addresses without editing every aliasing zone. But each side can also change independently, and caches will keep serving their earlier statements until the applicable TTL runs out.

Minimal coordination survived by refusing mixed truth

CNAME solved a distributed-maintenance problem with a deliberately thin primitive. The shared protocol needed no global registry of equivalent names and no central adjudicator of which address was "really" attached to an alias. It needed one unambiguous edge that any resolver could cache and follow.

The exclusivity rule is the constitutional centre of that design. The source name may be a detour or a destination, but not both. Once it chooses the detour, its authority is real and narrow: publish one target, preserve the chain's evidence, and leave the destination's data to whoever controls the destination.

That is the whole trick, and it is why the rule has outlived every implementation that once enforced it. The detour was never the destination. It was the promise that a destination existed — and the discipline to let somebody else own it.

Sources and limits

The original model and resolution algorithm come from RFC 1034 and RFC 1035. Operational errors and naming clarifications come from RFC 1912 and RFC 2181. DNSSEC exceptions come from RFC 4033 and RFC 4034; chain status and present terminology come from RFC 6604 and RFC 9499. These documents do not establish current deployment share, provider-specific flattening, resolver chain limits, dangling-alias prevalence, application ownership or the availability of any present service.