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