Homeglossary

Apex Domain

An apex domain is a base domain that identifies a website without a subdomain prefix, such as example.com. Also called a root, naked, or zone-apex domain, it has special DNS record constraints because it holds the zone’s essential administrative records.

Connect your Emergent app to a custom 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.

HostnameDNS roleCommon purposeApex domain?
example.comZone apexPrimary site addressYes
www.example.comSubdomainPublic website or redirectNo
blog.example.comSubdomainBlog platformNo
api.example.comSubdomainApplication programming interfaceNo

How Apex Domain DNS Works

DNS sends a browser to the destination for a web address.

  1. A visitor requests example.com.
  2. DNS finds authoritative name servers through NS records.
  3. The SOA record provides core DNS administration details.
  4. An A record returns an IPv4 address, while an AAAA record returns an IPv6 address.
  5. 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.

  1. Check whether your host supports the apex domain.
  2. Choose example.com or www.example.com as the canonical hostname.
  3. Permanently redirect the other hostname.
  4. Keep required email, TXT verification, and other DNS records.
  5. 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.

Start Building
on Emergent today
Start Building