Before configuring a CNAME record, you need to add a domain name first. If you have already added one, proceed directly.
You need to complete the configuration at the DNS service provider of your domain name. This document describes the configuration steps in Tencent Cloud and Alibaba Cloud:
If your domain service provider is Tencent Cloud, we recommend you use the quick CNAME record configuration feature. For more information, see Configuring CNAME via DNSPod.
Log in to the CDN console and copy the CNAME address.
Before your domain name is successfully resolved, a prompt icon is displayed next to the CNAME record. Copy the CNAME record value.
Log in to the DNSPod console and click Record.
Add a CNAME record and click OK.
Wait for the configuration to take effect.
Configuration description:
Configuration | Description |
---|---|
Host | It is the domain name prefix. Example: to add a record for dnspod.com , select @ for Host. To add a record for www.dnspod.com , select www for Host. |
Record Type | Select CNAME. |
Split Zone | Select Default. DNSPod offers various split zone options for you to specify records for specific users. For more information, see Split Zone Description. |
Value | Enter the domain name pointed to by the CNAME, e.g., xxx.xxx.com.cdn.dnsv1.com . After the record is generated, a . will be automatically added after the domain name. |
Weight | Different record values in the same split zone of a host record can be set with different weights, so that resolution will be returned according to their weight ratios. Value range: 1–100. |
MX | It refers to the priority. The lower the value, the higher the priority. We recommend you leave it empty. |
TTL | It refers to the time to live. The smaller the value is, the less the time cost for record changes to take effect globally. The default value is 600 seconds. |
If your DNS service provider is Alibaba Cloud, you can add a CNAME record as follows.
Log in to the CDN console and copy the CNAME address.
Before your domain name is successfully resolved, a prompt icon is displayed next to the CNAME record. Copy the CNAME record value.
Log in to the Alibaba Cloud DNS console.
Click the domain name to be resolved to enter the resolution record page.
Click Add Record.
Select *CNAME as the record type. Enter the host record as needed (such as www
), which is the domain name prefix. Enter the CNAME record copied in step 1 as the record value. Retain the default settings of the split zone and TTL.
Finally, click Confirm.
The time it takes for a CNAME record to take effect varies by DNS service provider. It is generally within half an hour. You can also check whether the CNAME record is in effect by running nslookup
or dig
. If the CNAME record response is the CNAME configured, it indicates that the configuration is successful and the acceleration is enabled.
You have completed the basic configuration of the CDN service. For more CDN configurations, see the corresponding document in Configuration Guide.
Was this page helpful?