concept Domains & DNS
CNAME record
See how a DNS CNAME aliases a hostname to another name and why ordinary records cannot share that alias owner.
What it means
A CNAME (canonical name) record says that one DNS name is an alias for another DNS name. It does not contain an IP address and does not redirect a browser to a different URL. When looking up an address through an alias, DNS resolution continues toward the target's relevant records. The web request still needs a server configured for the hostname the user visited. CNAME processing CNAME clarification
Try it
Simulation — trace an alias graph, then break one rule. Inspect the fixed records and choose Trace selected graph. A successful trace reaches the target's address; a conflict, loop, missing target or educational depth limit produces a stop instead of an invented address.
Follow an alias without redirecting the URL
Trace a valid alias, then introduce a conflict or loop and observe the bounded stop.
The initial graph is readable without JavaScript. Trace performs only the local, bounded walk.
| Item | State / result | Why it matters |
|---|---|---|
| www.example.test | CNAME origin.example.test | No ordinary-data coexistence conflict |
| origin.example.test | A 192.0.2.20 | No ordinary-data coexistence conflict |
Fixed synthetic records. Not a DNS provider parser, flattening service or live validation.
About this model
Ordinary CNAME data cannot coexist with ordinary A/TXT/SOA/NS data at its owner. DNSSEC-related metadata exceptions are outside this scene. The four-alias limit is an educational guard, not a universal DNS limit. DNS aliasing does not change the hostname in the browser URL or issue an HTTP redirect.
Read the article’s primary sources for protocol rules and implementation-specific limits. This scene has no network access.
Compare the direct alias with the two-alias graph. Both reach the same address through different paths. Then choose CNAME plus ordinary TXT at the same owner, or an apex CNAME alongside SOA/NS. These fixtures deliberately violate ordinary-data coexistence rules. Removing a timeout or extending a trace cannot resolve that conflict. CNAME consistency Alias clarification
| Graph | Local outcome | Important distinction |
|---|---|---|
| Direct or two-link alias | Target address is found | The requested browser hostname is unchanged |
| CNAME plus ordinary TXT or apex SOA/NS | Conflict; no successful trace | An alias owner is not an ordinary multi-type record set |
| Two-node cycle | Loop; stop | Following the same names repeatedly cannot reach an address |
| Missing target or more than four aliases | Bounded stop | The four-alias cap is a teaching guard, not a universal DNS limit |
The target being absent from this small map is not a live finding about a domain. DNSSEC-related metadata exceptions, caching each link and provider flattening are outside the scene. Reset returns to the untraced direct alias. A DNS alias does not itself send an HTTP redirect or change the hostname a certificate must cover.
Coexistence and the zone apex
At a standard CNAME owner name, the alias cannot coexist with ordinary resource records such as A, AAAA, MX or TXT. DNSSEC-related records have narrowly defined exceptions; that is not general permission to mix a CNAME with ordinary data. The apex of a zone needs SOA and NS records, so a standard CNAME at that same apex conflicts with those requirements. CNAME rule Zone records
| Proposed setup | Standard DNS result |
|---|---|
www CNAME to a hostname, no other ordinary www RR | Normal alias pattern |
www CNAME plus www A | Conflict at the same name |
| Zone apex CNAME alongside required SOA/NS | Conflict at the same name |
| Provider ALIAS/ANAME or flattening feature | Provider-specific behavior, not an ordinary CNAME |
Some providers synthesize A/AAAA responses from a target name at the apex; read their provider documentation rather than assuming this is standard CNAME behavior. DNS also has standardized SVCB/HTTPS AliasMode for certain services, which is not equivalent to a generic CNAME and has different client support. Service binding AliasMode
In practice
Before editing an alias, record the exact owner name and target, check whether any ordinary records already exist at that owner, and use the hosting provider's documented configuration. Never replace a zone apex's NS/SOA or its MX/TXT mail data with an arbitrary CNAME. A CNAME doesn't itself provide a TLS certificate or move site contents.
Compare A and AAAA records for literal addresses. For a controlled cutover use Change a DNS record safely.
Key takeaways
Use CNAME for a name-to-name alias, not an IP value or an HTTP redirect. Check the owner for ordinary-data conflicts and the target chain for a usable endpoint. Apex alternatives and provider-specific features need their own documented rules; they are not permission to create an ordinary conflicting CNAME.
Frequently asked questions
Editorial questions, answered from the sources listed for this article.
Will a CNAME change the address shown in the browser?
Not by itself. DNS alias resolution finds data through another name while the requested URL remains the original URL. An HTTP redirect is a separate response from the web service.
Why is an ordinary CNAME at a zone apex a problem?
A zone apex already needs SOA and NS data. Ordinary CNAME coexistence rules conflict with those records. Provider-specific alias or flattening features, and SVCB or HTTPS records, must be evaluated under their own rules rather than treated as ordinary CNAME exceptions.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- RFC 1034 — Domain Names: Concepts and Facilities
Sections 2.4, 3.1, 4.3.2 and 5. DNS tree, zones, referrals, resolvers and caching.
Checked .
- RFC 2181 — Clarifications to the DNS Specification
Sections 5 and 10. RRsets, CNAME coexistence, and MX/NS alias restrictions.
Checked .
- RFC 1035 — Domain Names: Implementation and Specification
Sections 3.2, 3.3 and 4. RR formats, TTL, A, NS, SOA, CNAME and MX records.
Checked .
- RFC 9460 — Service Binding and Parameter Specification via DNS
Section 2.4.2, AliasMode. Standard SVCB/HTTPS AliasMode differs from CNAME and vendor flattening.
Checked .