After you add an accelerated domain, Alibaba Cloud Content Delivery Network (CDN) team will assign a CNAME domain to the accelerated domain. To enable the CDN service, you must add a Canonical Name (CNAME) record to map the accelerated domain to the CNAME domain. In this way, requests sent to the accelerated domain can be redirected to the CDN nodes that are nearest to the clients that make the requests. This topic describes how to add a CNAME record for your accelerated domain on Alibaba Cloud Domain Name System (DNS) (previously known as HiChina).

Prerequisites

You have logged on to the Alibaba Cloud CDN platform.

Procedure

  1. Obtain the CNAME domain for an accelerated domain.
    1. In the left-side navigation pane, click Domain Names.
    2. On the Domain Names page, copy the CNAME domain of your accelerated domain.
      Domain names
  2. Add a CNAME record.
    1. Log on to the Alibaba Cloud DNS console.
    2. On the Manage DNS page, click the Domains tab, select a domain, and then click Configure in the Actions column for the domain.
      DNS Settings
    3. Click Add Record to add a CNAME record.
      • Type: Select CNAME from the drop-down list.
      • Host: Enter the prefix of the accelerated domain.
        Accelerated domain Host
        testcdn.aliyun.com testcdn
        www.aliyun.com www
        aliyun.com @
        *.aliyun.com *
      • ISP Line: Use the default value.
      • Value: Enter the CNAME domain that you have copied in step 1.
      • TTL: Use the default value.
      Record
    4. Click OK.
      The CNAME record is added. Immediately after you add the record on Alibaba Cloud DNS, the CNAME record takes effect, and the CDN service is automatically enabled.
      Note
      • If you modify the CNAME record, the record takes effect within 72 hours after the modification.
      • After you add a CNAME record, it takes approximately 10 minutes to update the status in the console. The message "You must add the CNAME record" may still appear on the Domain Names page. Ignore this message.
  3. Check whether a new CNAME record takes effect.
    1. Open the Command Prompt in Windows.
    2. Enter ping or dig and the accelerated domain.
      If the output includes *.*kunlun*.com, both the CNAME record and the CDN service have taken effect.The new CNAME record takes effect.