Configuring CNAME for Domain Name

Last updated: 2020-09-21 17:15:27

    Once your domain name is connected to LVB, the system will automatically assign it a CNAME domain name (suffixed with .liveplay.myqcloud.com), which can be viewed in the Domain Management list. It cannot be accessed directly before you complete the CNAME configuration at your domain name service provider. After the configuration takes effect, LVB can be used properly.

    Notes

    • CNAME resolution is required for both playback domain name and push domain name.
    • Please configure a CNAME record at your domain name resolution service provider. For detailed directions, please consult your service provider.
    • The CNAME configuration will take effect in about 15 minutes. If you set multiple layers of CNAME, LVB cannot effectively monitor the resolution result, and the actual access conditions shall prevail.
    • If the CNAME configuration fails to take effect after a prolonged time, please see CNAME Configuration Troubleshooting.

    Prerequisites

    • You have owned a domain name.
    • You have successfully added a domain name in Domain Management in the LVB Console, and the CNAME address status of the domain name is (CNAME not configured).

    Configuration Steps

    This document describes how to configure a CNAME record at Tencent Cloud, Alibaba Cloud, Baidu Cloud, DNSPod, Wanwang, and Xinnet, respectively. The directions below are for your reference only, and the actual directions shall apply. After configuring the domain name CNAME, you can verify whether the CNAME configuration has taken effect as instructed in Verifying the Effect of CNAME Record.

    Settings for Alibaba Cloud

    If your DNS service provider is Alibaba Cloud and you have obtained an ICP filing for your domain name, you can set up a CNAME record in the following steps:

    1. Log in to the Alibaba Cloud Console and go to Alibaba Cloud DNS > DNS.
    2. Select the domain name for which you want to add a CNAME record and click Resolution Settings.
    3. Select Add Record and set as follows:
      • Record Type: select CNAME.
      • Host Record: enter the prefix of the sub-domain names; for example, if the playback domain name is play.myqcloud.com, enter play; if you want to directly resolve the primary domain name myqloud.com, enter @; and if you want to resolve a wildcard domain name, enter \*.
      • Resolution Route: you are recommended to select Default.
      • Record Value: enter the CNAME value in the format of domain.livecdn.liveplay.myqcloud.com obtained on the Domain Management page in the Tencent Cloud Console.
      • TTL: you are recommended to enter 10 minutes.
    4. Click OK.

    Settings for Baidu Cloud

    If your domain name service provider is Baidu Cloud, you can add a CNAME record in the following steps:

    1. Log in to the Baidu Cloud Console and select Domain Management to enter the domain management list page.
    2. Select the domain name added to LVB and click Resolve in the "Operation" column to enter the DNS resolution page:
    3. Add a resolution record and configure as follows:
      • Host Record: enter the prefix of the second-level domain names; for example, if the playback domain name is play.myqcloud.com, enter play; if you want to directly resolve the primary domain name myqloud.com, enter @; and if you want to resolve a wildcard domain name, enter \*.
      • Record Type: select CNAME.
      • Resolution Route: you are recommended to select Default.
      • Record Value: enter the CNAME value in the format of domain.livecdn.liveplay.myqcloud.com obtained on the Domain Management page in the LVB Console.
      • TTL: you are recommended to enter 10 minutes.
    4. Click OK to submit.

    Settings for DNSPod

    If your DNS service provider is DNSPod, you can add a CNAME record in the following steps:

    1. Log in to the DNSPod Console.
    2. In the list, find the row of the domain name for which to add a CNAME record, and click the domain name to enter the "Add Record" page.
    3. Add a CNAME record in the following steps:
      1. Enter the sub-domain name for the host record (for example, if you want to add the resolution for www.123.com, you only need to enter www as the host record; if you want to add the resolution for 123.com, the host record can be left empty and the system will automatically enter an @ into the input box. A CNAME record with @ will affect the proper resolution of the MX record, so please be cautious when adding it).
      2. Set the record type to CNAME.
      3. Set the line type (required by default; if left empty, requests of some users may not be able to be resolved. In the figure above, the default value means that all users except those of China Unicom will be pointed to 1.com).
      4. The record value is the domain name pointed to by CNAME resolution. Only a domain name can be entered. After the record is generated, a "." will be automatically added after the domain name, which is normal.
      5. MX priority does not need to be entered.
      6. TTL does not need to be entered. The system will automatically generate it when adding the record. The default is 600 seconds (TTL is the cache time. The smaller the value, the faster the change to the record will take effect in various regions).

    Settings for Wanwang

    If your DNS service provider is Wanwang, you can add a CNAME record in the following steps:

    1. Log in to the Wanwang Member Center.

    2. On the left sidebar, click Product Management > My Cloud Resolution to enter the cloud resolution list page.

    3. Click the domain name to be resolved to enter the resolution record page.

    4. On the resolution record page, click "Add Resolution" to set a resolution record.

    5. To set a CNAME resolution record, select CNAME as the record type. Enter the host record as needed (such as www), which is the domain name prefix. Enter the domain name pointed to by the current domain name as the record value. Retain the default settings of the resolution line and TTL.

    6. After completing the settings, click Save.

    Settings for Xinnet

    If your DNS service provider is Xinnet, you can add a CNAME record by setting an alias (CNAME record).
    An alias record allows you to map multiple names to the same computer and is generally used for computers providing both WWW and mail services. For example, a computer named host.mydomain.com (A record) provides both WWW and mail server. To facilitate user access, you can set two aliases (CNAME records) for this computer: WWW and MAIL .

    Verifying the Effect of CNAME Record

    The time it takes for a CNAME record to take effect varies by DNS service provider. It is generally within half an hour. You can also check whether the CNAME record is in effect in the following ways:

    • Method 1: enter Domain Management in the LVB Console and check whether the status symbol of the domain name suffixed with .myqcloud.com has changed to , and if so, CNAME configuration is successful.

    • Method 2: on Linux/macOS, run the dig command in the format of dig your own domain name. If the first row displays that the destination domain name provided by LVB is resolved, CNAME configuration is successful.

    • Method 3: on Windows, click Start > Run, enter cmd, press Enter, and then enter nslookup your own domain name on the command line. If the destination domain name provided by LVB is resolved, CNAME configuration is successful.

    If the CNAME configuration fails to take effect after a prolonged time, please see CNAME Configuration Troubleshooting.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help