To use ApsaraVideo Live to accelerate live streaming, you must map your domain name to the canonical domain name that is assigned by ApsaraVideo Live. This way, requests that are sent to the domain name for CDN can be redirected to the nearest Alibaba Cloud CDN node. This topic shows you how to add a canonical name (CNAME) record for your domain name in Alibaba Cloud DNS, which is previously known as HiChina.
After you add an ingest domain and a streaming domain to ApsaraVideo Live, you must configure CNAME records for the domain names to take effect.
Log on to the ApsaraVideo Live console.
In the left-side navigation pane, click Domains. The Domain Management page appears.
Find the streaming domain that you want to manage and copy the canonical domain name that is assigned to the streaming domain.Note
If an exclamation point (!) is displayed in the CNAME column, no CNAME record is configured for the specified domain name. Follow the instructions in the following step to add a CNAME record.
Add a CNAME record.
Log on to the Alibaba Cloud DNS console.
In the left-side navigation pane, click Manage DNS. On the Manage DNS page, find the domain name that you want to manage and click Configure in the Actions column.
Click Add Record and add a CNAME record.
CNAME- Canonical namefrom the drop-down list.
Host: Enter the prefix of the streaming domain.
Corresponding host record
ISP Line: Use the default value.
Value: Paste the canonical domain name that you have copied.
TTL: Use the default value.
After you add a CNAME record for the streaming domain, follow steps 1 to 4 to add a CNAME record for the ingest domain.Note
After the parameters are set, the CNAME record takes effect soon.
A new CNAME record immediately takes effect, and a modified CNAME record requires up to 72 hours to take effect.
If you encounter a conflict when you add a CNAME record, you can change the domain name or modify the CNAME record. For more information.
It takes about 10 minutes until the status of the canonical domain name is updated. Therefore, even if you have configured a CNAME record, the No CNAME record is added message may be displayed on the Domain Management page in the ApsaraVideo Live console. In this case, you can ignore the message.
Check whether the CNAME records take effect
The duration before a new CNAME record takes effect depends on the DNS service provider. You can run the
dig command on the ingest domain or streaming domain that you have added. If you are redirected to
*.*kunlun*.com, the CNAME record takes effect, which indicates that the ingest domain or streaming domain takes effect.