Why use CNAME records?

Source: Internet
Author: User
Tags aliases

Because of the reasons for the work, to the CDN principle must have an understanding, although know CNAME record, but not clear its benefits, find an article, feel good, here a little change, and share with you


The use of CNAME records, for many sites, multiple domain names, is a very convenient management method. After making an alias record, it is no longer necessary to manage the server's IP changes.


Alias Record (CNAME): Also known as canonical name. This record allows multiple names to be mapped to the same computer.
A computer that is typically used to provide both the WWW and mail services. For example, there is a computer named "Host.mydomain.com" (a record). (pictured below)

It also provides WWW and mail services to facilitate user access to services. You can set two aliases for this computer (CNAME): www and mail. The full name of these two aliases is "www.mydomain.com" and "mail.mydomain.com". In fact, they all point to "host.mydomain.com". The same method, when multiple domain names point to the same server IP, at this point can be a domain name to do a record point to the server IP and then the other domain name alias to do a record before the domain name, Then when the server IP address changes can not be bothered with a domain change point to only need to change to do a record of the domain name of the other aliases of those domain names will automatically change to the new IP address. If leasing a virtual host, the General Service providers will provide a level three or level four domain name, that address resolution IP is always the latest server IP.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.