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.
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.
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.
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:
- Point www at your site with a CNAME and forward the root domain to https://www. GoDaddy adds HTTPS to its forwarding automatically; see the IONOS guide for its forwarding.
- Or change nameservers to Staticbot, and the root domain works over HTTPS directly.
š” 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
| Registrar | ANAME/ALIAS Support | Root Domain Support | Key Feature |
|---|---|---|---|
| AWS Route 53 | Yes (Alias) | Yes | Integrates with AWS services |
| Azure DNS | Yes (Alias) | Yes | Points to Azure resources |
| Cloudflare | Yes (CNAME flattening) | Yes | Add a CNAME on @; flattened automatically |
| DreamHost | Yes (ALIAS) | Yes | Works with subdomains and root |
| easyDNS | Yes (ANAME) | Yes | Simple setup for root domains |
| GoDaddy | No | No | Forward the root to www (GoDaddy adds HTTPS) |
| IONOS | No (standard DNS panel) | No | Forward the root to www |
| Wix | No (A records only) | No | Change nameservers for the root |
| Bluehost | No | No | Limited to subdomain CNAME |
| Hostinger | Yes (ALIAS) | Yes | Supports ALIAS for root domains |
| Namecheap | Yes (ALIAS) | Yes | Coexists with other records |
| Name.com | Yes (ANAME) | Yes | Remove root URL forwarding first |
| Porkbun | Yes (ALIAS) | Yes | Listed as āALIAS - CNAME flatteningā |
| Squarespace | Yes (ALIAS) | Yes | Turn 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
