Domains & DNS

What Is an Apex Domain? The Bare Domain, and Why CNAME Breaks There

An apex domain is your domain with nothing in front of it. For example.com, the apex is example.com; www.example.com, shop.example.com and mail.example.com are all subdomains beneath it. That is the short answer, and most explanations stop there. The useful part is why the apex behaves differently from every other name in your zone — and that answer lives in the DNS standards, not in a hosting platform’s setup guide.

The definition, from the standard

RFC 8499 is the IETF’s reference for DNS terminology. Section 7 defines the term this way:

Apex: The point in the tree at an owner of an SOA and corresponding authoritative NS RRset. This is also called the “zone apex”.

Every clause in that sentence is doing work. DNS is a tree, and every delegated zone occupies one point in it. At that point — the zone’s own name — two things must exist: a start-of-authority record and the authoritative set of nameserver records. The standards document goes on to say that RFC 4033 describes the same position as “the name at the child’s side of a zone cut”, and that RFC 1034 calls it the “top node of the zone”. A later sentence notes that in zone files the same concept is called the origin, written $ORIGIN.

So “apex” is not a product feature or a registrar’s label. It is a structural position in the DNS tree, and it is identified by the records that have to be there.

Four names for the same thing

You will meet the same position under different names depending on who is writing:

TermWhere you tend to see it
Apex, zone apexRFCs, DNS provider documentation
Root domain, bare domainHosting and SEO writing
Apex recordRegistrar dashboards, DNS setup forms
OriginZone files ($ORIGIN)

These are not four different objects. They are four vocabularies describing the same name. “Root domain” is the one that causes the most confusion, because the DNS root itself is the empty label at the very top of the entire tree — a different thing entirely. If a guide says “point your root domain at the server”, it means the apex of your zone.

Apex domain vs subdomain

ApexSubdomain
Exampleexample.comwww.example.com
SOA and authoritative NS recordsRequired hereNot here
CNAMEForbidden by the standardAllowed
Can it be delegated to another zoneNo — it is the top of this oneYes, at a zone cut
Registered separatelyYesNo

The practical difference is entirely in that third row. A subdomain can be an alias: you point it at a hostname and the resolver follows the chain. The apex cannot, because of what has to live there.

Why a CNAME cannot sit at the apex

RFC 2181 §10.1 states the rule:

An alias name (label of a CNAME record) may, if DNSSEC is in use, have SIG, NXT, and KEY RRs, but may have no other data.

The same section lays out the four mutually exclusive possibilities for any name in the DNS: either one CNAME exists (optionally with those DNSSEC records), or one or more non-CNAME records exist, or the name exists with no records, or it does not exist at all. There is no fifth state in which a CNAME coexists with ordinary records.

Now put that next to the definition of the apex. The apex must carry an SOA and an authoritative NS RRset. A CNAME there would be a CNAME with other data, which the standard does not permit. That is the whole of the “you cannot CNAME your root domain” rule. It is not a limitation invented by DNS hosting panels, and it does not depend on which registrar you use.

This also explains why the question comes up so often. Platforms hand you a hostname — something like your-site.platform.example — rather than an IP address. The natural record for that is a CNAME, and the natural place to want it is the bare domain people type into a browser. Those two requirements collide exactly at the apex.

How platforms resolve the collision

There is no standards-compliant way to put a CNAME at the apex. What exists instead is a set of workarounds, and they are not interchangeable:

  • An A record with the address supplied by the platform. Direct and standards-clean, but it breaks if that address changes.
  • ALIAS or ANAME, a provider-specific pseudo-record that behaves like a CNAME at the root. There is no RFC behind it, and it may not survive a DNS migration.
  • CNAME flattening, where the authoritative server resolves the chain and returns the final addresses to the client. Cloudflare documents this as returning the address instead of the alias, and states that CNAMEs at the zone apex are flattened by default on all plans, including Free.
  • A redirect from the apex to www, with the CNAME living on the subdomain. This sidesteps the DNS question by moving the decision to HTTP.

Which one to use depends on whether your DNS and your platform are the same company, and on whether you intend to move either one later. I have written up the record-by-record comparison in CNAME, A and ALIAS records: which one belongs at the apex, and the platform-by-platform behaviour in adding a custom domain on any platform.

Three things the term does not mean

It does not mean the root of the DNS. The apex is the top of your zone. The DNS root is the top of the whole hierarchy.

It does not decide where visitors land. You can keep the apex as a redirect to www, or serve the site directly at the apex. That is a traffic decision made after DNS has resolved; the apex is only a position in the tree.

It does not require an A record. The definition is about SOA and NS, not addresses. A zone can publish only AAAA at the apex, or publish addresses that were produced by flattening. If you are checking whether a name is the apex, look for the SOA — not for an A.

Check it yourself

You do not need a control panel to see the position:

dig SOA example.com +short
dig NS  example.com +short
dig CNAME example.com +short

The name that returns an SOA and the authoritative NS set, and cannot return a CNAME, is the apex. Swap in your own domain and the same shape appears. Replace example.com with www.example.com and the SOA answer disappears — that is the subdomain case in one command.

Sources

Primary documentation only — the provider's own page, the specification, or the standard itself. Claims that rest on anything else are described in the text as a market pattern or an inference, not as documentation.

  1. RFC 8499 §7 — DNS Terminology (the definition of apex, zone apex, and origin)
  2. RFC 2181 §10.1 — Clarifications to the DNS Specification (an alias name may have no other data)
  3. RFC 1034 §3.6 — Domain Names: Concepts and Facilities (the data required at the top of a zone)
  4. Cloudflare — CNAME flattening (what a resolver returns when a CNAME sits at the apex)

Written by . Spotted something out of date? Tell us.