"Reprint, organize" domain name CNAME resolution configuration, use domain B as the CNAME record value for domain A

Source: Internet
Author: User

Recently there is a demand, not the record of the domain name A, want to resolve to Hong Kong or domestic servers, but because of the non-filing, direct use of CDN analysis in the domestic visit will be very slow

But do not want direct directly to the IP, so found two ways to solve:

Scenario One: Transfer to another server do 301 jump or Proxy

This doesn't have to be explained! The focus is on Programme II

Scenario Two: Do a DNS CNAME to a registered level two domain name

Here I choose Dnspod do DNS server, and then use their line configuration, respectively, for domestic, foreign configuration of different CDN, domestic point to record the two-level domain name, foreign points to foreign CDN, the effect can also be used.

Note here: The Dnspod effective time is 72 hours, so within 72 hours may appear sometimes can identify domestic lines, sometimes identified as a foreign line problem

CNAME record, that is: alias record. This record allows you to map multiple names to the same computer. Typically used for computers that provide both WWW and mail services. For example, there is a computer named "Host.mydomain.com" (a record). It also provides the WWW and mail services, in order to facilitate user access to services. You can set two aliases (CNAME) for this computer: www and mail. For example: the server bound a domain name, then we have a domain A records to the server IP can be accessed. b Domain name cname to a domain name, but the server is bound only a domain name, b domain name request is unable to return data. Then if the B server on the same way to bind the B domain name or on the server to do a domain 301 jump to the B domain name, you can also achieve the requirements. "Original": http://lxshopping.blog.51cto.com/4542643/1591090

"Reprint, organize" domain name CNAME resolution configuration, use domain B as the CNAME record value for domain A

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.