Staticbot logoStaticbot.dev

    How to add an ANAME/ALIAS record

    Table of Contents

    šŸ” What Are ANAME/ALIAS Records?

    ANAME (or ALIAS) records are DNS record types that allow you to point the root domain (`@` or `example.com`) to another hostname (e.g., a CDN or cloud service). Unlike CNAME records, which cannot be used for root domains due to conflicts with other records like MX or NS, ANAME/ALIAS records coexist with other records and provide flexibility similar to CNAME but for the apex domain.

    šŸ“ How to Set Up ANAME/ALIAS Records by Registrar

    1. AWS Route 53

    AWS Route 53 uses Alias records to point root domains to AWS resources. To set one up: log into the Route 53 console, select your hosted zone, and click Create Record. Choose Alias and select the target AWS resource (e.g., CloudFront distribution). For Record name, leave it blank for the root domain and save.

    Full Staticbot guide for AWS Route 53 Ā· Route 53 Alias Record Guide

    2. Azure DNS

    Azure DNS supports Alias records. To set one up: log into the Azure portal, navigate to your DNS zone, and click + Record set. Select A or AAAA for Type, check Alias record set, and choose the target resource. Leave Name blank for the root domain and save.

    Azure Alias Record Guide

    3. Cloudflare

    Cloudflare has no separate ALIAS type: add a CNAME with Name @ and Cloudflare flattens it at the root automatically (CNAME flattening). Set Proxy status to ā€œDNS onlyā€ for Staticbot’s records.

    Full Staticbot guide for Cloudflare Ā· Cloudflare: CNAME flattening

    4. DreamHost

    DreamHost supports ALIAS records. To set one up: log into your account, go to Manage Websites > DNS Settings, click Add Record and select ALIAS Record. For Host, leave it blank for the root domain or enter a subdomain. For Points to, enter the target hostname and save.

    DreamHost ALIAS Record Guide

    5. easyDNS

    easyDNS supports ANAME records. To set one up: log into your account, select your domain, go to DNS Settings > CNAME/ALIAS Records, click Edit, and enter @ for Host. For Address, enter the target hostname and save.

    easyDNS ANAME Record Guide

    6. Hostinger

    Hostinger supports ALIAS records for root domains. To set one up: navigate to the domain’s DNS zone editor on hPanel, select the CNAME record type from the dropdown list, and enter the target hostname. Note that only one ALIAS record can be added to a root domain’s DNS zone. Once added, it will appear as CNAME ALIAS in the DNS zone.

    Full Staticbot guide for Hostinger Ā· Hostinger ALIAS Record Guide

    7. Namecheap

    Namecheap supports ALIAS records for root domains and subdomains. To set one up: log into your account, go to Domain List and click Manage, navigate to Advanced DNS > Host Records, click Add New Record and select ALIAS. For Host, enter @ (for root domain) or a subdomain. For Value, enter the target hostname. Set TTL and save changes.

    Full Staticbot guide for Namecheap Ā· Namecheap ALIAS Record Guide

    8. Name.com

    Name.com calls it an ANAME. Click MY DOMAINS, select the domain and click Manage DNS Records. Choose ANAME, leave Host empty for the root domain and enter the target hostname in Answer. Remove a URL forward on the root first; it uses the same name.

    Full Staticbot guide for Name.com Ā· Name.com: Adding an ANAME (Alias) record

    9. Porkbun

    Porkbun calls it ā€œALIAS - CNAME flatteningā€. In Manage DNS Records click Add Record, choose ALIAS, leave Host empty for the root domain and enter the target hostname as the Answer. Delete Porkbun’s parking records on the root first.

    Full Staticbot guide for Porkbun Ā· Porkbun: Connect your root domain with an ALIAS record

    10. Squarespace

    Turn off DNSSEC (DNS → DNSSEC), then open DNS → DNS Settings → Custom Records → Add record. Choose ALIAS, enter @ as the Name and the target hostname as the Data. This also covers domains moved from Google Domains.

    Full Staticbot guide for Squarespace Ā· Squarespace: DNS records for web hosting

    āš ļø Registrars Without Native ANAME/ALIAS Support

    Some providers, like GoDaddy, IONOS (standard DNS panel), Wix and Bluehost, have no ANAME/ALIAS record for the root domain. Staticbot sites run on CloudFront or Cloudflare, which have no fixed IP address, so an A record is not an option either. Instead:

    šŸ’” Key Considerations for ANAME/ALIAS Records

    • Coexistence with Other Records: Unlike CNAME, ANAME/ALIAS records can coexist with MX, TXT, and other records on the same hostname.
    • Automatic Updates: If the target hostname's IP changes, ANAME/ALIAS records update automatically, reducing manual maintenance.
    • Use Cases: Ideal for root domains pointing to CDNs, cloud platforms, or SaaS services (e.g., Heroku, CloudFront).
    • Propagation Time: DNS changes may take up to 48 hours to propagate globally, though TTL settings can influence this.
    • Limitations: Not all DNS providers support ANAME/ALIAS records. Check your registrar's documentation for compatibility.

    🌐 Comparison of Registrar Support

    RegistrarANAME/ALIAS SupportRoot Domain SupportKey Feature
    AWS Route 53Yes (Alias)YesIntegrates with AWS services
    Azure DNSYes (Alias)YesPoints to Azure resources
    CloudflareYes (CNAME flattening)YesAdd a CNAME on @; flattened automatically
    DreamHostYes (ALIAS)YesWorks with subdomains and root
    easyDNSYes (ANAME)YesSimple setup for root domains
    GoDaddyNoNoForward the root to www (GoDaddy adds HTTPS)
    IONOSNo (standard DNS panel)NoForward the root to www
    WixNo (A records only)NoChange nameservers for the root
    BluehostNoNoLimited to subdomain CNAME
    HostingerYes (ALIAS)YesSupports ALIAS for root domains
    NamecheapYes (ALIAS)YesCoexists with other records
    Name.comYes (ANAME)YesRemove root URL forwarding first
    PorkbunYes (ALIAS)YesListed as ā€œALIAS - CNAME flatteningā€
    SquarespaceYes (ALIAS)YesTurn off DNSSEC first

    āœ… Conclusion

    ANAME/ALIAS records point a root domain at a hostname without breaking DNS rules. Porkbun, Namecheap, Squarespace, Hostinger, DreamHost, Cloudflare (flattening) and AWS Route 53 support them; others need forwarding to www. Always check your registrar's documentation for specific instructions and ensure your DNS changes align with your hosting needs.

    Hosting an apex domain on Staticbot? If your registrar doesn't support ANAME/ALIAS — or you want the root domain to work over HTTPS with an automatic apex → www redirect — the recommended path is to delegate your nameservers to Staticbot instead of managing the apex record yourself.

    Related: How to add a CNAME record Ā· How to change your nameservers Ā· How to redirect the apex to www Ā· Custom domain overview