The ANAME record (sometimes also referred to as “ALIAS” or “flattening” record by some DNS providers) is a type of DNS record that allows you to point the root (or apex) of your domain to another domain name. It essentially serves the same purpose as a CNAME record but can be used at the domain’s root, which is not possible with standard CNAME records due to DNS specifications.
Key Characteristics of ANAME Records:
- Purpose: Provides a solution to the limitation of CNAME records, which cannot coexist with other records for the same domain and cannot be used at the domain’s apex.
- Functionality: When queried, the ANAME record resolves to the IP address associated with the target domain, rather than pointing the resolver to the target domain as a CNAME does. This process is handled at the authoritative DNS server level.
- Example:
example.com. IN ANAME anotherdomain.com.
- Usage: Useful for services like Content Delivery Networks (CDNs) or cloud platforms where the IP addresses associated with a domain might change frequently, and you want to use such services at the apex of your domain.
Advantages:
- Flexibility: Allows the root of a domain to point to dynamic IP addresses associated with cloud services or CDNs, providing the flexibility of CNAME-like behavior at the root level.
- Compatibility: Can coexist with other DNS records at the domain root.
Considerations:
- Provider Support: Not all DNS providers support ANAME or ALIAS records, so you’ll need to check if yours does.
- Resolution: While an ANAME record provides the flexibility of pointing a domain’s root to another domain, it does require the DNS provider to handle the resolution, meaning the DNS provider must make an additional lookup to resolve the final IP address.
In summary, the ANAME record offers a workaround to the limitations of the CNAME record, especially at the domain’s apex, and is beneficial in modern cloud-based infrastructures.
Key terms in plain language
Open a term for a concise explanation of language used on this page.
Cloud Computing
Computing resources—such as applications, servers, storage, or databases—delivered from remote infrastructure and scaled as requirements change.
Infrastructure as a Service (IaaS)
Cloud-based servers, storage, and networking that customers configure and manage without owning the underlying data-center hardware.
Software as a Service (SaaS)
Software accessed as an online service instead of being installed and maintained entirely on the customer’s own computers or servers.
Disaster Recovery (DRaaS)
A plan and service for restoring applications, data, and operations after an outage or disruption. DRaaS provides recovery infrastructure through a managed cloud service.
Identity and Access Management (IAM)
The systems and policies that determine who a user is, what resources they may access, and how that access is authenticated and reviewed.
API
An application programming interface is a defined way for software systems to exchange data or request functions from one another.