What is ANAME Record and How to Configure it on the ArvanCloud User Panel?
We can introduce the ANAME record as a combination of the CNAME record and A record. Its function is similar to the CNAME record (both records make it possible for a domain to hint another one). However, the CNAME record only maps a domain to another, while the ANAME record maps a domain directly to the IP address of another one. On the other hand, the CNAME cannot be used to map a root address to another address, while the ANAME record can be.
How Does the CNAME Record Functions?
You can employ the CNAME record to map every DNS record (except for the root) such as www.example.com to another DNS record like a.example.com. It means that if a user types the www.example.com address in his/her browser, he/she will receive the answer from the a.example.com address. Using this record leads to at least one more DNS lookup. To better understand the issue, consider the following steps:
- The user enters the example.com address into his/her browser, and the browser transfers the access request to the recursive resolver. The recursive resolver means the same as the DNS server that the ISP has determined for the user or any other DNS server, which is aware of the other servers that can respond to the request.
- When the recursive resolver views this address, it transfers a request about the .com domain to the root name server. The root name servers hold the information about the DNS associated with Top Level Domains (TDL). The TDL is the same as domains such as .org or .com.
- The root name server transfers the IP for .com TDL to the recursive resolver in response to the received request.
- The recursive resolver transfers a request for accessing the .com to the TDL that it has received its IP address. TDLs hold the information about their subdomains DNS (in this case, the TDL.com holds the information about the example).
- When TDL.com receives the request, it retrieves the .com IP address to the recursive resolver.
- In the next step, the recursive resolver sends a request for obtaining the IP record address to the .com.
- .com, in response to the received request, retrieves the a.example.com record.
- The browser receives and caches the response, then re-implements the above steps to access the example.com IP address.
Although every step takes just a few milliseconds, they may cause a significant delay in the end-user access to the website content.
If you use the ANAME record, some steps similar to the above ones will take place. There is only one difference: when it receives at the 6th step, the example.com instead of the a.example.com immediately transfers its IP address to the browser. Removing these additional steps decreases the delay for the end-user to access the content.
How to Configure the ANAME Record on the ArvanCloud User Panel
To define an ANAME record on the ArvanCloud user panel, complete the following steps:
- Open the Cloud DNS section,
- Select the Record Management option,
- Go to the DNS Settings section,
- Determine the ANAME as the record type,
- Enter the record which you intend to map to another domain into the Title field,
- Enter the domain name to which this mapping has been created into the Value field.