After you add a CDN domain, CDN will assign a CNAME to the CDN domain. To enable the CDN service, you must point a CDN domain to its CNAME. After that, requests destined for the CDN domain can be redirected to CDN nodes. This topic uses a domain that is added to Alibaba Cloud DNS (HiChina) as an example.
- Obtain the CNAME of a CDN domain.
- Log on to the CDN console.
- In the left-side navigation pane, click Domain Names.
- On the Domain Names page, copy the CNAME of a CDN domain.
- Add a CNAME record.
- Log on to the Alibaba Cloud DNS console.
- On the Manage DNS page, click the Domains tab and select a domain. Then, click Configure in the Actions column corresponding to the domain.
- Click Add Record to add a CNAME record.
- Type: Select
- Host: Enter the prefix of the domain.
Domain name Corresponding host record
- ISP Line: Use the default value.
- Value: Enter the CNAME value obtained in step 1.
- TTL: Use the default value.
- Type: Select
- Click OK.
A CNAME record is configured. The CDN service takes effect immediately after a new CNAME record takes effect.Note
- A new CNAME record takes effect immediately. However, if you modify a CNAME record, it takes effect within 72 hours.
- After you configure a CNAME record, it takes about 10 minutes to update the status. The message "You must add the CNAME record" may still appear on the Domain Names page in the CDN console. Ignore this message.
- Verify whether a new CNAME record takes effect.
The time when a new CNAME record takes effect depends on the DNS provider. You can run the
digcommand followed by a CDN domain to verify whether a new CNAME record takes effect. If the CDN domain is redirected to
*.*kunlun*.com, both the CNAME record and CDN features have taken effect.