Apex Domain
What Is an Apex Domain?
An apex domain is a DNS zone's base address, without a subdomain prefix, such as example.com. Also called a root, naked, base domain, or zone apex, it combines the registered name and top-level domain, such as.com.
Apex Domain vs. Subdomain vs. www
Hostnames can serve different purposes. The www label is a subdomain, even when used as a site's public address.
| Hostname | DNS role | Common purpose | Apex domain? |
|---|---|---|---|
| example.com | Zone apex | Primary site address | Yes |
| www.example.com | Subdomain | Public website or redirect | No |
| blog.example.com | Subdomain | Blog platform | No |
| api.example.com | Subdomain | Application programming interface | No |
How Apex Domain DNS Works
DNS sends a browser to the destination for a web address.
- A visitor requests example.com.
- DNS finds authoritative name servers through NS records.
- The SOA record provides core DNS administration details.
- An A record returns an IPv4 address, while an AAAA record returns an IPv6 address.
- The browser connects and requests the site over HTTPS.
Why a CNAME Usually Cannot Be Used at the Apex
A CNAME makes one hostname an alias for another, but cannot coexist with other records at the same name. Because the apex needs SOA and NS records, it normally cannot be a CNAME. Some providers offer CNAME flattening, ALIAS, or ANAME features that resolve a target behind the scenes. These are provider features, not universal DNS record types.
Benefits of Using an Apex Domain
An apex address can be a clean public entry point for a web application.
- It creates a short, memorable canonical URL.
- It keeps branding consistent in links and emails.
- It can redirect www to the primary hostname.
- Consistent redirects and canonical tags help prevent duplicate pages.
Practical Limits of Apex Domain Configuration
One DNS zone can support web, email, and verification services.
- Many hosts require a fixed A or AAAA record instead of an apex CNAME.
- Changing IP addresses may require DNS updates without provider-specific flattening.
- Removing records can disrupt email, verification, or other services.
- DNS changes can take time, and HTTPS certificates must cover the selected hostname.
How to Choose Between Apex and www as the Primary URL
Neither option is inherently better. Choose one secure, consistent primary address.
- Check whether your host supports the apex domain.
- Choose example.com or www.example.com as the canonical hostname.
- Permanently redirect the other hostname.
- Keep required email, TXT verification, and other DNS records.
- Enable HTTPS and test both addresses after DNS changes complete.
Using an Apex Domain for an Emergent Application
For a web application built with Emergent, connect a custom domain and follow the hosting provider's DNS instructions. An AI web app builder can create and deploy the application, while DNS records determine whether its apex domain reaches the live service.
on Emergent today

