CNAME Flattening at the Domain Apex: When to Use It
CNAME flattening lets a supporting DNS provider point a root domain such as example.com at a hostname. The provider follows the alias and returns address answers. An ordinary CNAME at the apex conflicts with required zone records such as SOA and NS.
| Situation | Record to use |
|---|---|
| The host supplied fixed IPv4 or IPv6 addresses | Add the supplied A or AAAA records at the intended name. |
| The host supplied a target hostname for the apex | Use the authoritative provider’s documented flattening or managed-alias feature. |
| The host supplied a target for a subdomain | A standard CNAME often fits, provided no other records need to exist at that same owner name. |
Decide whether the alias fits
- Read the destination’s instructions for the root domain. Check whether it supplies stable addresses or requires a hostname target. Verify that your authoritative DNS provider supports apex aliasing and how its editor labels that feature.
- Record current MX, TXT, CAA and address records before editing. Follow the provider’s compatibility rules and avoid deleting email or verification entries to make an ordinary CNAME fit.
- Query A and AAAA for the apex from each authority and verify that mail and verification records remain present. Test the destination hostname over HTTPS and confirm that its certificate covers the apex.
An apex flattening feature can change what a verification service sees. For example, a verifier that explicitly checks for a visible CNAME may not accept address answers for an alias. Use the verification method the destination documents and preserve the previous apex configuration for rollback.
Check A and AAAA answers for the apex after the change. A verification service that explicitly expects to see a CNAME may need an unflattened record at its named label or the service’s supported TXT verification method.
If your next step is moving an existing domain to a new web host, compare Ferkesh shared hosting plans. Ordering is currently closed.
Related guides
- How to Create a CNAME Record for a Subdomain
- How to Export and Review a DNS Zone Before Editing It
- How to Check MX Records for Incoming Mail
- Domains and DNS category
Official references
Ferkesh Hosting. Last reviewed .
Obrigado pela sua opinião!