Help Center> Content Delivery Network> Getting Started> Configuring a CNAME Record> Adding a CNAME Record on Huawei Cloud DNS
Updated on 2024-06-28 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 record 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 record ****download.game-apk1.com.****.cdnhwcedi10.com.

  • Add the CNAME record.
  1. Log in to the 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.
  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.

    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 record allocated by CDN

    download.game-apk1.com.7fb73989.cdnhwcedi10.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.

    -

  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.