Overview
A CNAME record cannot be created at the zone apex (root domain) because it conflicts with DNS records that are required for the zone to function.
The zone apex is the root of the domain itself, such as example.com. E
very DNS zone must contain authoritative DNS records at this location, including the Start of Authority (SOA) record and Name Server (NS) records.
Because a CNAME record must exist by itself and cannot coexist with other record types at the same name, a CNAME record at the zone apex violates DNS standards.
Why This Happens
DNS standards define CNAME records as aliases.
When a DNS name contains a CNAME record, no other resource record types can exist at that same name.
This behavior is documented in:
- RFC 1034, Section 3.6.2
- RFC 1912, Section 2.4
A zone apex must contain at least:
SOArecordsNSrecords
Since these records are mandatory for the zone to operate, a CNAME record at the apex would always conflict with existing required records.
Example
The following configuration is not valid:
example.com. CNAME target.example.net. example.com. NS udns1.ultradns.net. example.com. NS udns2.ultradns.net. example.com. SOA ...
The CNAME record conflicts with the required NS and SOA records that already exist at the zone apex.
How This Affects DNS Queries
When a DNS lookup is performed against the zone apex, resolvers ultimately require address records such as A or AAAA records to complete the response.
If a CNAME were present at the apex, DNS resolvers would need to follow the alias while simultaneously processing the mandatory authoritative records that must exist at the same name.
This conflict is one of the reasons DNS standards prohibit apex CNAME records.
What You Should Use Instead
If you need the root domain to resolve to another hostname, consider using a DNS feature specifically designed for apex aliasing if it is available within your DNS provider.
In UltraDNS, Apex Alias records are available for this purpose and provide alias-like behavior at the zone apex without violating DNS standards.
Important Notes
- A CNAME record must not coexist with other record types at the same DNS name.
- The zone apex always requires SOA and NS records.
- Because SOA and NS records are mandatory, a CNAME record cannot be placed at the zone apex.
- This restriction is defined by DNS standards and is not specific to UltraDNS.