An A-record (Address Record) is associated with an IP address and is the most common name server record. The AAAA record (IPv6 Address Record) has a connection to an IPv6 address. Both records are used to associate a domain name with a network computer.

 

A CNAME (Canonical Name) record is one of the DNS records that is usually used to assign one domain name to another domain name. CNAME records are commonly used when you want to create a website that redirects the user to another domain where the website is actually hosted.

The syntax is as follows: <alias> CNAME <record> <alias> refers to a subdomain or subdomain defined in a name server. <record>, on the other hand, is the domain name that <alias> refers to.

For example, if you want to create a subdomain "shop.example.com" that redirects the user to "www.example-store.com", you should create a CNAME record that looks like this: shop.example.com CNAME www.example-store .com

This means that when a user types "shop.example.com" into the address bar of their browser, the name server redirects the user to the page "www.example-store.com".

Was this answer helpful? 2 Users Found This Useful (4 Votes)