Help Center/ Content Delivery Network/ Getting Started/ Configuring a CNAME Record/ Adding a CNAME Record on Huawei Cloud DNS
Updated on 2024-08-22 GMT+08:00

Adding a CNAME Record on Huawei Cloud DNS

If your domain name is resolved using the DNS service Huawei Cloud provides, then follow the steps in this section to add a CNAME record. download.game-apk1.com is used as an example.

Procedure

  • Obtain the CNAME of the domain name.
  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.

    On the Domains page, copy the CNAME download.game-apk1.com.****.c.cdnhwc2.com.

    Figure 1 Obtaining the CNAME
  • Add a CNAME record.
  1. Log in to the management console and choose Service List > Networking > Domain Name Service.

    The DNS console is displayed.

  2. In the navigation pane, choose Public Zones.

    The public zone list is displayed.

  3. Click the domain name you want to add a record set to. In this example, the domain name is game-apk1.com.
  4. Click Add Record Set in the upper right corner.
    Figure 2 Adding a record set
  5. Configure the parameters as instructed. Table 1 describes the parameters.
    Table 1 Parameter description

    Parameter

    Parameter description

    Example Value

    Name

    Domain name prefix

    • Name for www.huaweicloud.com is www.
    • Name for testcdn.huaweicloud.com is testcdn.

    Type

    Type of the record set

    NOTE:

    A CNAME record cannot coexist with an A record. Otherwise, DNS resolution will fail.

    CNAME – Map one domain to another

    Line

    Used when the DNS server is resolving a domain name. It returns the IP address of the server according to the visitor source. For details, see Resolution Line.

    Default

    TTL (s)

    Cache duration of the record set on a local DNS server. If your service address changes frequently, set TTL to a smaller value.

    Retain the default value.

    Value

    Domain name to be pointed to, that is, the CNAME allocated by CDN

    download.game-apk1.com.****c.cdnhwc2.com

    Weight

    If a resolution line in a zone contains multiple record sets of the same type, you can set different weights to each record set. For details, see Configuring Weighted Resolution.

    -

  6. Click OK.
    • After the CNAME resolution takes effect, the status changes to . However, CNAME resolution may fail the verification and the status changes to , indicating that no CNAME record is configured for the domain name. If you have correctly configured the CNAME record, ignore the error message.
    • A CNAME record takes effect immediately after being added. If you modify the CNAME record, then the change takes effect within 72 hours.
    • If you encounter a resolution conflict, see DNS Conflicts.