The apex is the domain itself, such as example.com. An ordinary CNAME cannot coexist there with the zone's required SOA and NS data. Some DNS providers offer flattening, ALIAS or ANAME features that let a hosted service be configured at the apex while publishing suitable address answers.
IN THIS ARTICLE
What you need before you begin
Read the hosted service's custom-domain instructions and identify your authoritative DNS provider. Record existing apex addresses and mail records. Confirm whether the service supplies fixed A/AAAA values or explicitly supports a provider-specific apex alias.
01 Point an apex domain at a hosted service without an invalid CNAME
- Add and verify the domain in the destination hosting service before directing visitors to it. Arrange certificate issuance for the apex name.
- If the service supplies stable IP addresses, use its exact current A and, where supported, AAAA records. Do not derive permanent addresses by resolving an undocumented provider hostname once.
- If your DNS provider supports apex flattening or an equivalent feature, follow that provider's instructions for the exact hosted target. This is a provider feature, not permission to publish an ordinary conflicting CNAME.
- Keep required NS, SOA, MX and TXT data. Do not remove email authentication records merely to satisfy a misleading CNAME conflict message.
- Configure the service's preferred public hostname and any apex-to-www redirect. DNS pointing alone does not create an HTTP redirect.
02 Example: use address records at the zone apex
For a conventional hosted website with an assigned IPv4 address, an apex A record and a www alias can be a valid design. Replace these documentation values with the settings required by your hosting service before editing the authoritative zone.
example.com. 300 IN A 192.0.2.10
www.example.com. 300 IN CNAME example.com.
Read the result: The apex remains able to hold its required zone data and mail-related records. The www name follows example.com. Do not place an ordinary CNAME at the apex alongside its SOA, NS, MX or other data and assume every DNS provider will make that combination valid.
If a hosted platform requires a changing hostname at the apex, use a supported provider feature such as its documented alias or flattening service, or the platform's alternative configuration. The website application and HTTPS certificate still need to recognise both names.
Confirm the expected result
Query authoritative A/AAAA answers for the apex, then open its HTTPS website. Confirm the correct account serves the request and that email DNS remains intact.
Troubleshoot unexpected results
If flattening returns no addresses, check that the target exists and has usable address records. If your provider lacks the required feature, use a supported alternative from the hosting service or plan a DNS-provider move.
A common question
Can I copy another provider's ALIAS record into any DNS manager?
No. ALIAS and ANAME commonly describe provider-specific behaviour. Confirm support in both the editor and authoritative platform. A record visible in an import file does not prove the destination will publish the same answers.