ALIAS and ANAME Records: Pointing Your Root Domain (Zone Apex) to a Hostname

An ALIAS record (or ANAME record) is a virtual DNS record that points your root domain to another hostname while returning standard A and AAAA IP addresses. Authoritative DNS servers resolve the target hostname internally. The main advantage of an ALIAS record is working safely at the zone apex.

Browser Resolver Root+TLD Authoritative Website query solid = query · dashed = cached response · every hop caches until TTL
DNS resolution flow: authoritative nameservers synthesize A and AAAA address answers from the ALIAS target

What Is a Zone Apex Record and Why Can't You Use a CNAME at the Root Domain?

The zone apex (represented by @ in DNS control panels) is the bare root domain name itself (such as example.com without www or any subdomain prefix), where standard DNS rules prohibit placing a CNAME record.

This restriction originates from the coexistence rule governing canonical name records. A standard CNAME Record instructs resolvers to redirect all lookups for that exact label to the target hostname. DNS specifications prohibit a CNAME record from coexisting with any other resource record on the exact same name.

Every root domain already carries mandatory administrative records. The apex hosts an SOA Record defining zone properties, along with authoritative NS Record entries delegating name resolution. Domains also publish an MX Record for email routing and TXT records for ownership verification. Publishing a standard CNAME at @ overrides these records, severing delegation and halting incoming mail.

# INVALID: A standard CNAME at @ conflicts with SOA, NS, and MX records
example.com.    3600    IN    SOA   ns1.provider.com. admin.example.com. (...)
example.com.    3600    IN    MX    10 smtp.google.com.
example.com.    300     IN    CNAME myapp.herokuapp.com.   ; <-- REJECTED OR BREAKS EMAIL!

# VALID: An ALIAS / ANAME record at @ coexists with SOA, NS, MX, and TXT
example.com.    300     IN    ALIAS myapp.herokuapp.com.   ; <-- Synthesizes A / AAAA on the wire

Modern cloud platforms like Vercel, Netlify, Heroku, Shopify, and AWS Elastic Load Balancing provide dynamic target hostnames rather than fixed IP addresses. Infrastructure providers rotate underlying IP addresses frequently during scaling cycles. Entering a static IP in a standard address record creates brittleness, while publishing a CNAME at the apex breaks domain delegation. An ALIAS record resolves this dilemma by delivering dynamic hostname tracking while preserving compatibility with all apex records.

Authoritative nameservers enforce precise coexistence rules for synthesized aliasing: an ALIAS record coexists alongside SOA, NS, MX, and TXT records, but conflicts with CNAME or HTTP Web Redirect records configured on the exact same hostname.

How Does an ALIAS or ANAME Record Work Behind the Scenes? (5 Steps)

An ALIAS or ANAME record works across 5 server-side resolution steps where your authoritative DNS provider resolves the target hostname internally and returns synthesized A or AAAA records to the visitor. Authoritative servers continue serving the most recently cached IP address to prevent visitor downtime whenever a target fails to resolve transiently, while pointing an ALIAS record to a target hostname that resolves to multiple A or AAAA addresses preserves Round-Robin traffic distribution.

Server-side record synthesis follows this sequential 5-step process:

  1. Configure an ALIAS or ANAME record at your DNS host pointing @ to the target hostname (such as shop.myshopify.com).
  2. Receive a standard A (IPv4) or AAAA (IPv6) query for example.com at your authoritative nameserver from a visitor's recursive resolver.
  3. Resolve the target hostname (shop.myshopify.com) internally from your authoritative DNS server (or read the pre-polled IP address from the provider's edge cache).
  4. Synthesize a standard A Record (Type 1) or AAAA Record (Type 28) response containing the target's current IP address (23.227.38.65).
  5. Return the synthesized A or AAAA packet to the recursive resolver in a single round-trip, making the response indistinguishable from a standard A record.

Authoritative nameservers serve synthesized address answers exclusively because ALIAS and ANAME operate as virtual provider-side configurations rather than official IANA wire types. Standard terminal queries like dig example.com ALIAS return zero records, whereas running live checks through the A Record Lookup or AAAA Record Lookup displays the synthesized IPv4 and IPv6 addresses immediately.

A Record vs CNAME vs ALIAS/ANAME vs HTTPS Record (Comparison Table)

DNS administrators choose between A, CNAME, ALIAS/ANAME, and HTTPS/SVCB records based on whether the target is a static IP address or a dynamic hostname and whether the record sits at the zone apex (@). The table below compares all 4 record types across 6 technical dimensions.

Feature / ConstraintA / AAAA RecordCNAME RecordALIAS / ANAME RecordHTTPS / SVCB Record (AliasMode)
Points To (Target Value)Static IPv4 or IPv6 addressAnother domain / hostnameAnother domain / hostnameAnother domain / hostname + service params
Allowed at Zone Apex (@)?YesNo (Conflicts with SOA/NS/MX)Yes (Synthesizes A/AAAA)Yes (Official IETF standard)
Coexists with MX and TXT?YesNoYesYes
IANA Wire Type CodeType 1 (A) / Type 28 (AAAA)Type 5 (CNAME)Virtual (Served as Type 1 / 28)Type 65 (HTTPS) / Type 64 (SVCB)
Client Lookup Round-Trips1 lookup (Direct IP)2+ lookups (Follows alias chain)1 lookup to client (Resolved at edge)1 lookup (Includes IP hints)
Best Use CaseFixed server IP addressesSubdomains (www, blog, DKIM)Root domain (@) pointing to CDN/PaaSModern browsers + HTTP/3 apex aliasing

Selecting the proper record depends on target destination and zone placement. Subdomains like www or blog without MX records utilize a standard CNAME record, verifiable via CNAME Record Lookup. Root domains (@) pointing to cloud hostnames deploy ALIAS or ANAME records, while modern browsers increasingly adopt HTTPS AliasMode records to eliminate proprietary workarounds. Comprehensive specifications appear in our guide to DNS Record Types.

What Do Different DNS Providers Call ALIAS Records? (Provider Support Matrix)

Because the IETF never finalized a single RFC for ALIAS or ANAME, each DNS hosting provider uses its own proprietary record name and polling interval to deliver root-domain hostname aliasing. The table below lists how 8 major DNS providers implement zone apex aliasing.

DNS Hosting ProviderRecord Name in DashboardHow It Updates Target IPsSupports Root (@) Aliasing?
Cloudflare DNSCNAME (Auto-Flattened)Real-time edge resolution on query (CNAME Flattening)Yes (Automatic at @)
AWS Route 53A / AAAA (Alias = Yes)Native internal pointer to AWS ELB, CloudFront, or S3Yes (Free for AWS resources)
DNS Made Easy / ConstellixANAME RecordResolves target and updates synthesized A/AAAA recordsYes
Namecheap Basic / Premium DNSALIAS RecordPolls target hostname every 1 to 5 minutesYes
DNSimple / Porkbun / ClouDNSALIAS RecordResolves target dynamically at authoritative edgeYes
NS1 (IBM NS1 Connect)ALIAS RecordZone-internal linked record resolutionYes (Within NS1 zones)
Azure DNSAlias Record SetLinks to Azure Public IP, Traffic Manager, or Front DoorYes (For Azure resources)
GoDaddy Standard DNSNot supported nativelyRequires hardcoded A record or HTTP forwarding redirectNo

Implementation architectures differ across managed DNS platforms. Cloudflare provides automated edge synthesis through CNAME Flattening, resolving target hostnames on the fly during incoming queries. Polling-based providers query target hostnames on scheduled intervals and update internal records, introducing brief propagation delays during upstream IP reassignments.

What Are the 3 Technical Limitations of ALIAS and ANAME Records?

Despite solving the root-domain CNAME restriction, ALIAS and ANAME records introduce 3 technical trade-offs involving GeoDNS accuracy, zone file portability, and polling latency.

System architects evaluate these 3 technical limitations before deploying virtual apex records:

  1. GeoDNS Location Mismatch Without EDNS Client Subnet: Resolving target CDN hostnames at the authoritative DNS server exposes the server's geographic location rather than the visitor's resolver IP. GeoDNS platforms route visitors to suboptimal regional edge nodes unless resolvers transmit EDNS Client Subnet payloads.
  2. Non-Portable BIND Zone File Exports: Exporting DNS zones to BIND formats converts virtual ALIAS entries into static address records because BIND specifications reject unofficial pseudo-types. Migrating to another provider requires manually recreating dynamic alias records.
  3. Polling Delay During Target IP Failover (1 to 5 Minutes): Providers using polling mechanisms query targets on a scheduled cycle rather than per-query, introducing a 1 to 5 minute propagation window before upstream load balancer IP reassignments reflect in authoritative answers.

The Internet Engineering Task Force addressed these limitations in RFC 9460, introducing native SVCB (Type 64) and HTTPS (Type 65) resource records. Operating in AliasMode (Priority 0), HTTPS records deliver standardized wire-level apex aliasing with parameter hints, eliminating proprietary resolution hacks.

How Do You Add and Verify an ALIAS or ANAME Record? (4 Steps)

To point your root domain (@) to a target hostname using an ALIAS or ANAME record, complete 4 configuration and verification steps inside your DNS provider dashboard.

Deploying and verifying an apex alias record proceeds through this sequence:

  1. Remove any conflicting hardcoded A or AAAA records currently published on @ (your root domain) while leaving your existing MX, TXT, SOA, and NS records intact.
  2. Select ALIAS or ANAME from the record type dropdown (or select CNAME on Cloudflare where root flattening is automatic).
  3. Enter @ (or leave the Host field blank if required by your provider) as the Host/Name, paste the target hostname (such as myapp.onrender.com) in the Value/Target field, and set the TTL to 300 seconds.
  4. Verify that your root domain resolves to the target's live IPv4 and IPv6 addresses across global resolvers using the DNS Propagation Checker or by running dig example.com A +short.

Deploying an ALIAS record or ANAME record resolves the historical zone apex CNAME conflict, giving root domain owners full CNAME ergonomics while answering resolvers with compliant synthesized A and AAAA records. Zone administrators maintain MX and TXT coexistence, ensuring incoming email delivery and domain security remain intact while directing apex web traffic to modern cloud platforms.

Frequently asked questions

Is an ALIAS record the same as an ANAME record?+

Yes, ALIAS and ANAME are two different provider names for the exact same virtual DNS record. Both resolve a target hostname behind the scenes at your authoritative DNS server and return standard A and AAAA IP addresses for your root domain.

Why does my ALIAS record show up as an A record when I run a DNS lookup?+

The authoritative DNS server translates the ALIAS target into standard A (IPv4) and AAAA (IPv6) records before transmitting the answer to resolvers because ALIAS operates as a virtual provider-side feature rather than an official wire protocol type.

Should I use an ALIAS record or a CNAME record for www?+

Use a standard CNAME record for www and other subdomains that do not have MX or TXT records on the same name. Reserve ALIAS or ANAME records for the root domain (@) where CNAME records are prohibited. In real-world web architecture, standard CNAME delegation on subdomains minimizes authoritative DNS synthesis overhead while preserving native CDN edge routing.

Does an ALIAS record break MX email records on my root domain?+

No, an ALIAS record coexists safely with MX, SPF, TXT, NS, and SOA records on your root domain because resolvers only see standard A and AAAA records rather than a conflicting CNAME. In practice, this eliminates the historical apex dilemma where administrators were forced to choose between apex CDN routing and functional domain email.

Last verified: 2026-11-18