Domain ARecord and CNAMES
What is ARecord?
According to the difinition
An A (address) record is a DNS record that can be used to point your domain name and host names to a static IP address.Usually the Domain provider will provide DNS management tools that allow us to set up A Records.
To understand A Record, we will have to understand Domain and Sub-Domain concept.
In our website,
iniu.net
is our domain name, and
t1.iniu.net
is an Sub Domain.
With ARecord, we could have iniu.net point to one IP address, and t1.iniu.net porint to another IP address, as if they 're totally different domain. and here 's the setup screen shot.
What is CNAME
A CNAME record is a also DNS record that can be used to create host names for a domain name. These host names can be set to point to other domain names or host names. Domain registration provider will provide DNS management tools that allow us to set up CNAME records.
For user experience , Actually there 's no difference to use between ARecord and CNAME, but there 's saying that ARecord 's DNS lookup speed is faster than CNAME, and some company even charge for ARecord type but CNAME is free.
For building our own website, there 's not much difference at all!
