After you add an accelerated domain name, CDN assigns a CNAME to it. You must add a CNAME record with your DNS provider to map the accelerated domain name to the assigned CNAME. This process forwards access requests to CDN points of presence (POPs) to enable acceleration. This topic uses Alibaba Cloud DNS as an example to show you how to configure a CNAME record.
Background information
Before you configure a CNAME record, make sure that you understand the following concepts:
Preparations
You have added an accelerated domain name. For more information, see Add an accelerated domain name.
Procedure
Obtain the CNAME for the accelerated domain name.
Log on to the ApsaraVideo VOD console.
In the navigation pane on the left, choose Configuration Management > CDN Configuration > Domain Names.
Find the domain name that you want to manage. Hover over the view icon and copy the CNAME of the accelerated domain name. You will need this CNAME to add the CNAME record.

Configure the CNAME record.
The following steps use the Alibaba Cloud DNS console as an example. If you use another DNS provider, such as DNSPod, Xinnet, or GoDaddy, the procedure is similar. You must configure the CNAME record on the website of your DNS provider.
Log on to the Alibaba Cloud DNS console with the Alibaba Cloud account that is associated with the accelerated domain name.
(Optional) If your domain name is not registered with Alibaba Cloud, you must add it to the Alibaba Cloud DNS console.
NoteIf your domain name is not registered with Alibaba Cloud, you must add it to the Alibaba Cloud DNS console before you can configure DNS settings. For more information, see Domain management. You can skip this step if your domain name is registered with Alibaba Cloud.
On the Domain Names page, find the domain name that you want to manage and click Configure in the Actions column.
Click Add Record to add a CNAME record.
ImportantEach accelerated domain name has a unique CNAME. The CNAME of a root domain cannot be used for a second-level domain. To accelerate a second-level domain, you must add it to CDN and map it to its corresponding CNAME. Alternatively, you can add a wildcard domain name to CDN. The CNAME of a wildcard domain name can be used by its second-level domains.
The servers that Alibaba Cloud CDN uses to verify DNS records are deployed in the Chinese mainland. If you configure DNS records by region and specify the Alibaba Cloud CDN CNAME only for regions outside the Chinese mainland, such as Hong Kong (China), Macao (China), and Taiwan (China), the verification server cannot resolve the CNAME. As a result, the CNAME status of the domain name in the ApsaraVideo VOD console remains Pending Configuration. This does not affect the ApsaraVideo VOD CDN acceleration service.
The CNAMEs for Alibaba Cloud CDN, DCDN, ApsaraVideo Live, and ApsaraVideo VOD can be used only by Alibaba Cloud for scheduling and resolution. Alibaba Cloud reserves the right to remove the corresponding domain names and disable the accounts if the CNAMEs are used maliciously.
Parameter
Description
Sample
Record Type
Select CNAME.
CNAME
Host Record
If the accelerated domain name is a root domain, set the host record to
@.If the accelerated domain name is a wildcard domain, set the host record to
*.If the accelerated domain name is a subdomain, set the host record to the subdomain prefix.
Root domain example
If the accelerated domain name is aliyundoc.com, set Host Record to
@.If the accelerated domain name is aliyundoc.com.cn, set Host Record to
@.
Wildcard domain name example
If the accelerated domain name is .aliyundoc.com, set Host Record to
*.If the accelerated domain name is .aliyundoc.com.cn, set Host Record to
*.If the accelerated domain name is *.example.aliyundoc.com, set Host Record to
*.example.If the accelerated domain name is *.example.aliyundoc.com.cn, set Host Record to
*.example.
Subdomain example
If the accelerated domain name is example.aliyundoc.com, set Host Record to
example.If the accelerated domain name is example.aliyundoc.com.cn, set Host Record to
example.If the accelerated domain name is www.example.aliyundoc.com, set Host Record to
www.example.If the accelerated domain name is www.example.aliyundoc.com.cn, set Host Record to
www.example.
NoteThe `.com.cn` suffix is an example of a two-level top-level domain suffix.
Parsing the Request Source
The default line.
Keep the default value.
Value
Enter the CNAME value that corresponds to the accelerated domain name. This is the CNAME value you copied in Step 1.
NoteEach accelerated domain name corresponds to one CNAME value. A second-level domain cannot use the CNAME value of its root domain. To accelerate a second-level domain, add it to CDN and resolve it to its corresponding CNAME value.
www.example.com.w.kunlunsl.com
TTL
TTL specifies the cache time. A smaller value allows changes to take effect faster across different regions. The default value is 10 minutes.
Keep the default value.
Click OK.
After the CNAME record is configured and takes effect, the acceleration service starts immediately.
NoteA new CNAME record takes effect in real time. A modified CNAME record may take up to 72 hours to take effect.
After you configure the CNAME record, it may take up to 10 minutes for the status to be updated in the console. During this period, the status of the CNAME on the Domain Names page may remain unchanged. You can ignore this temporary status.
Verify that the CNAME record has taken effect.
Open Command Prompt in Windows.
In the command line, run the ping command on the accelerated domain name. If the domain name is resolved to the CNAME that is displayed in the ApsaraVideo VOD console, the ApsaraVideo VOD CDN acceleration service is enabled.
