A CNAME resource record, also known as a canonical name record, is the resource record used to specify that a domain name is an alias for another domain name. A CNAME record will always point to another domain name and it will not point to any IP address. This record helps with seamless domain name change from one to another without impacting the end users.
In the previous example, we see foo.example.com is the alias name created for bar.example.com. When the server receives a request for foo.example.com, it replies with a CNAME carrying the new domain name bar.example.com. The client will in ...