Below is the difference between CName and A record.
CName record:
1) CName record stands for Canonical Name. It is used in the DNS Zone to create an alias from one domain name to another domain name.
2) The common use of the CName record is when you run multiple services such as FTP, HTTP, and Mail service on the same machine and do not want to add IP addresses for each record. In that case, you can use Cname to point the FTP service to the http service without adding the IP address. For example, an FTP service has the domain name ftp.example.com, while an http service uses example.com. Since they are hosted on the same machine and using the same IP address, we can use the Cname record for ftp.example.com that points to example.com.
3) Example of a CNAME record:
ftp.example.com CNAME example.com
4) Improper CName records can result in an endless loop. For example, If you have added two CName records in the DNS Zone, such as ftp.example.com, which points to example.com, and in reverse, example.com points to ftp.example.com. Once you initiate the query, a CName record is found; having those two entries will result in an infinite loop that could crash the server.
A record:
1) A record maps a hostname to an IP address.
2) The common use of the A record is to point a domain or hostname to an IP address.
3) Example of A record:
example.com A 1**.1**.3.2**
4) A record does not have this problem because it does not point to another domain name.
