To accelerate content delivery in ApsaraVideo Live, you must configure a CNAME record to map your domain name to the CNAME that is assigned by ApsaraVideo Live. This topic describes how to configure CNAME records in systems of different domain name registrars.

Usage notes

  • You must configure CNAME records for both the streaming domain and the ingest domain.
  • If a conflict occurs when you add a CNAME record for a domain name, you can change the domain name or modify the CNAME record. For more information, see DNS record conflict rules.
  • A new CNAME record takes effect immediately. A modified CNAME record takes up to 72 hours to take effect.

Domain name overview

A domain name consists of several hierarchical levels that are separated by periods (.). The rightmost part is called the top-level domain name. The top-level domain name is also called the suffix. Common top-level domain names include .com, .org, .net, and .cn. Some top-level domain names may contain two hierarchical levels, such as .com.cn, .org.cn, and .net.cn.

  • A top-level domain name combined with a unique domain name is called a root domain name, such as aliyundoc.com and aliyundoc.com.cn.
  • A third-level domain name is a lower level of the root domain name, such as example.aliyundoc.com and example.aliyundoc.com.cn.
  • A fourth-level domain name is a lower level of the third-level domain name, such as "www.example.aliyundoc.com and www.example.aliyundoc.com.cn.

Third-level domain names and fourth-level domain names are also called subdomain names. For more information, see Terms.

Procedure

  1. Log on to the ApsaraVideo Live console.
  2. In the left-side navigation pane, click Domains.
  3. Obtain the CNAME that is assigned to the domain name for which you want to configure a CNAME record. We recommend that you record the CNAME for subsequent use.
  4. Configure a CNAME record in the system of your domain name registrar.

    Configure a CNAME record in Alibaba Cloud DNS

    1. Log on to the Alibaba Cloud DNS console.
    2. In the left-side navigation pane, click Domain Name Resolution. The Domain Name Resolution page appears.
    3. Find the domain name for which you want to configure a CNAME record and click DNS Settings in the Actions column.
    4. Click Add DNS Record. In the Add DNS Record panel, set the parameters that are described in the following table.001
      Parameter Description
      Record Type Select CNAME- Canonical name from the drop-down list.
      Hostname Specify a prefix for the domain name. For more information about regular prefixes of domain names and sample domain names, see the following table.
      DNS Line Use the default value.
      Record Value Enter the CNAME that you obtained.
      TTL Period Use the default value.
      Prefix Sample domain name Description
      demo demo.aliyundoc.com The subdomain name is resolved.
      @ aliyundoc.com The main domain name is resolved.
      * *.aliyundoc.com A wildcard DNS record is configured.
    5. Click Confirm.

    Configure a CNAME record in DNSPod

    1. Log on to the DNSPod console of Tencent Cloud.
    2. Find the domain name for which you want to configure a CNAME record and click Resolve.
    3. Click Add Records and set the parameters that are described in the following table.
      Parameter Description
      Host Specify a prefix for the domain name. For more information about regular prefixes of domain names and sample domain names, see the following table.
      Type Select CNAME from the drop-down list.
      ISP Line Use the default value.
      Value Enter the CNAME that you obtained in Step 3 in the "Procedure" section.
      TTL Use the default value.
      Prefix Sample domain name Description
      demo demo.aliyundoc.com The subdomain name is resolved.
      @ aliyundoc.com The main domain name is resolved.
      * *.aliyundoc.com A wildcard DNS record is configured.
    4. Click Save.

    Configure a CNAME record in Xinnet

    1. Log on to Xinnet.
    2. Configure a CNAME record for a domain name. The following table describes the parameters.
      Parameter Description
      Type Select CNAME from the drop-down list.
      Host Specify a prefix for the domain name. For more information about regular prefixes of domain names and sample domain names, see the following table.
      Value Enter the CNAME that you obtained in Step 3 in the "Procedure" section.
      ISP Line Use the default value.
      TTL Use the default value.
      Prefix Sample domain name Description
      demo demo.aliyundoc.com The subdomain name is resolved.
      @ aliyundoc.com The main domain name is resolved.
      * *.aliyundoc.com A wildcard DNS record is configured.
    3. Click Submit.

What to do next

Check whether the CNAME record takes effect

  • Method 1: Run the ping <Domain name> or dig <Domain name> command. If a message that indicates that the domain name is resolved to *.*kunlun*.com is displayed, the CNAME record takes effect.
  • Method 2: Go to the Domain Management page. If the value in the CNAME Status column of the domain name is Configured, the CNAME record takes effect.
    Note An exclamation point (!) may be displayed in the CNAME Status column due to the following reasons:
    • After you modify a CNAME record, the new settings take effect after the time to live (TTL) in which the CNAME record is cached on the DNS resolver expires. Wait patiently. By default, a CNAME record is cached for 10 minutes, which is subject to the TTL that you specify when you configure the CNAME record.
    • The CNAME record has not taken effect in specific regions. The status of the CNAME record is displayed as Configured only after the CNAME record takes effect in all regions.

References

CNAME resolution