This topic describes how to configure a Canonical Name (CNAME) record on Xinnet. After you add a domain name to Alibaba Cloud Content Delivery Network (CDN), Alibaba Cloud CDN assigns a CNAME to the domain name. You must add a CNAME record to map the domain name to the CNAME. This way, Alibaba Cloud CDN can direct requests destined for the domain name to CDN nodes.

Procedure

  1. a CNAME.
    1. Log on to the Alibaba Cloud CDN console.
    2. In the left-side navigation pane, click Domain Names.
    3. On the Domain Names page, copy the CNAME of the accelerated domain name.
      Domain Names page
  2. Add a CNAME record for the domain name on Xinnet.
    1. Log on to the DNS console of Xinnet. Find the domain name that you want to manage, navigate to the Manage DNS page, and then click Add Record.
      • Type: Select CNAME from the drop-down list.
      • Host: Enter the prefix of the accelerated domain name.
        Accelerated domain name Host
        testcdn.aliyun.com testcdn
        www.aliyun.com www
        aliyun.com @
        *.aliyun.com *
      • ISP Line: Use the default value.
      • Value: Enter the CNAME assigned to the accelerated domain name.
      • TTL: Use the default value.
    2. Click Submit.
      The CNAME record is added. After the CNAME record takes effect, CDN acceleration is automatically enabled for the domain name.
      Note
      • After you add a CNAME record, it immediately takes effect. After you modify a CNAME record, the modifications take effect within 72 hours.
      • After you add a CNAME record, it takes approximately 10 minutes for the system to update the status in the console. The system may prompt that you must add a CNAME record. Ignore the message.
  3. Check whether the CNAME record has taken effect.
    1. Open the Command Prompt in Windows.
    2. Use the Command Prompt to ping the accelerated domain name. If the CNAME in the output matches the CNAME assigned to the accelerated domain name in the Alibaba Cloud CDN console, it indicates that CDN acceleration is enabled.
      Check whether the CNAME record has taken effect