A look at ANAME record and how to set it up in the ArvanCloud user panel - ArvanCloud

ArvanCloud Blog

Read more about ArvanCloud news,
updates, products and services in ArvanCloud weblog.

A look at ANAME record and how to set it up in the ArvanCloud user panel

22 Jul 2019

The ANAME record can be considered as the combination of CNAME record and A record. The function of this record is similar to the CNAME record: both of them allow a domain to refer to another domain. The difference is that CNAME record only maps a domain to another domain, but ANAME record directly maps a domain to the IP address of another domain. The CNAME record also cannot be used for mapping the root address to another address, while this is possible with ANAME record .

Examining an example of how CNAME record functions

By using the CNMAE record, any DNS record in the domain (except root), such as www.example.com , can be mapped to another DNS, such as a.example.com. Meaning that if the user enters the web address of www.example.com into his/her browser, the user will receive his/her reply from a.example.com. Using this record leads to at least one additional DNS lookup. To better understand this, consider the following steps :

  1. The user enters the address of example.com into his/her browser, and the browser sends the request for accessing this address to the Recursive resolver. The Recursive resolver is referred to the DNS server that is specified for the user by the ISP, or any other DNS server that is aware of other DNS servers that can response to this request .

  2. Recursive resolver, by observing the address, sends a request regarding .com domain for the root name server. Root name servers are the holders of DNS information associated with Top Level Domain (TLDs). TLDs are also referred to domains such as .org, .com, and etc .

  3. Root name server, in response to this request received, sends the IP address of TLD.com to the Recursive resolver.

  4. Recursive resolver sends a request for accessing .com for the TLD that has received its IP address. TLDs are the holders of DNS information of their sub-domains (for example, in here, TLD.com holds the information of example).

  5. By receiving this request, TDL.com sends the IP address of com to the Recursive resolver .

  6. In the next step, the recursive resolver sends a request for com in order to receive the IP address of www.example.com record .

  7. In response to this request received, it sends the a.example.com record .

  8. The browser receives this request and after saving it in its cache, it will again go through the steps above to get the IP address of example.com .

Although each of these steps take only a few milliseconds, however, they can lead to a significant delay in the access of end user to the website contents.

By using the ANAME record, steps similar to those described above are followed, with only a difference in the step 6, example.com instead of a.example.com record, its IP address is immediately sent to the browser. Removing this step leads to reduced delay in the access of the end user to the content.

Setting up the ANAME record in AravanCloud user panel

To define an ANAME record in the ArvanCloud user panel, go to “Cloud DNS” -> “Record Management”, and in the DNS Settings section, specify the record type to ANAME. Then, in the Title section, enter the record you wanted to mapped it to another domain, and in the Value section, enter the name of the domain that this record should be mapped to.

No comments


دیدگاه شما