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
      ParameterDescription
      Record TypeSelect CNAME- Canonical name from the drop-down list.
      HostnameSpecify 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 SourceUse the default value.
      Record ValueEnter the CNAME that you obtained.
      TTL PeriodUse the default value.
      PrefixSample domain nameDescription
      demodemo.aliyundoc.comThe subdomain name is resolved.
      @aliyundoc.comThe main domain name is resolved.
      **.aliyundoc.comA 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.
      ParameterDescription
      HostSpecify a prefix for the domain name. For more information about regular prefixes of domain names and sample domain names, see the following table.
      TypeSelect CNAME from the drop-down list.
      ISP LineUse the default value.
      ValueEnter the CNAME that you obtained in Step 3 in the "Procedure" section.
      TTLUse the default value.
      PrefixSample domain nameDescription
      demodemo.aliyundoc.comThe subdomain name is resolved.
      @aliyundoc.comThe main domain name is resolved.
      **.aliyundoc.comA wildcard DNS record is configured.
    4. Click Save.

What to do next

Check whether the CNAME record takes effect

  • Method 1: Run the ping <Domain name> or dig <Domain name> command. If the CNAME in the output 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, 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