All Products
Search
Document Center

ApsaraVideo Live:Add a CNAME record

Last Updated:Jan 11, 2024

To accelerate content delivery in ApsaraVideo Live, after you add an ingest domain or a streaming domain, you must add a CNAME record for the domain name to map it to the CNAME that is assigned by ApsaraVideo Live. This way, requests to access the domain name can be forwarded to Alibaba Cloud points of presence (POPs) for acceleration.

Preparations

An accelerated domain name is added. For more information, see Add an accelerated domain name.

Usage notes

  • You must add 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 or aliyundoc.com.cn.
  • A third-level domain name is a lower level of the root domain name, such as example.aliyundoc.com or 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 or 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. Obtain the CNAME of the domain name.

    1. Log on to the ApsaraVideo Live console.

    2. In the left-side navigation pane, click Domains. The Domain Management page appears.

    3. Find the streaming domain or ingest domain for which you want to add a CNAME record and copy the CNAME that is assigned to the domain name.

      We recommend that you record the CNAME for subsequent use.

      Note

      If an exclamation point (!) is displayed in the CNAME Status column, no CNAME record is added for the domain name.

  2. Add a CNAME record at your DNS service provider.

Add a CNAME record at Alibaba Cloud DNS

If your DNS service provider is Alibaba Cloud, perform the following steps to add a CNAME record for the domain name:

  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 add a CNAME record and click DNS Settings in the Actions column.

  4. Click Add DNS Record and configure the parameters that are described in the following table.001

    Parameter

    Description

    Record Type

    Select CNAME 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 Request Source

    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.

    @

    aliyundoc.com

    The root domain name.

    *

    *.aliyundoc.com

    The wildcard domain name.

  5. Click OK.

Add a CNAME record at DNSPod

If your DNS service provider is Tencent Cloud, perform the following steps to add a CNAME record for the domain name:

  1. Log on to the DNSPod console of Tencent Cloud.

  2. Find the domain name for which you want to add a CNAME record and click Resolve.

  3. Click Add Records and configure 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.

    Split Zone

    Use the default value.

    Value

    Enter the CNAME that you obtained.

    TTL

    Use the default value.

    Prefix

    Sample domain name

    Description

    demo

    demo.aliyundoc.com

    The subdomain name.

    @

    aliyundoc.com

    The root domain name.

    *

    *.aliyundoc.com

    The wildcard domain name.

  4. Click Save.

Check whether the CNAME record takes effect

  • Method 1: Run the ping <domain name> or dig <domain name> command. If the CNAME that is returned is the same as the CNAME that is assigned to the domain name in the ApsaraVideo Live console, 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.003

    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. The actual cache duration is subject to the TTL that you specify when you add 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