Adding a CNAME Record

AAD supports A record-based access and CNAME-based access. CNAME-based access is recommended.

  • When adding a CNAME record, you must delete the existing A records from the DNS record set. If they are not deleted, you will fail to add the new record because resolution conflicts may occur. Some DNS service providers support the change from A records into CNAME records, and this change does not affect domain name resolution.
  • The DNS configuration may affect current service operating. Therefore, you are advised to configure DNS during off-peak hours.

CNAME-based access has the following advantages:

  • Easy to use. You only need to modify the resolution configuration at a time during domain name resolution (for example, on HUAWEI CLOUD DNS).
  • Automatic line switchover. If an AAD line encounters an exception, the CNAME resolution can be automatically switched to other properly working lines.
  • Service continuity. In a three-line package service, if a line is attacked and blocked by a black hole, AAD automatically uses the other available lines to complete CNAME resolution, ensuring service availability.

The configuration mechanism is similar for each DNS service provider, with small differences in steps. This topic uses the Domain Name Service (DNS) on HUAWEI CLOUD as an example.

Adding a CNAME Record

If you have configured domain name access in Connecting a Non-website Service to AAD, you obtain a CNAME record from AAD. Add the CNAME record to DNS.

  1. Log in to the management console. Click Service List. Under Network, click Domain Name Service. The DNS console is displayed.
  2. In the navigation pane on the left, choose DNS Resolution > Public Zones. Then click the desired domain name in the list.
  3. Click Add Record Set.
  4. Add the CNAME record. For details, see Table 1.

    Figure 1 Adding a record set
    Table 1 Parameters for adding a CNAME record

    Parameter

    Description

    Name

    Domain name alias (You do not need to manually add the suffix.)

    Type

    Record set type

    Select CNAME – Map one domain to another.

    Alias

    Whether to associate the record set with a cloud resource name

    Select No.

    Line

    Resolution line. The DNS server will return the IP address of the specified line based on the source of visitors.

    Select Default.

    Value

    Domain name mapped to the alias

    Enter the CNAME record obtained from AAD.

  5. Click OK.

The DNS configuration takes effect after a period of time. In this period, you can test the domain name resolution using some online test tools such as 17ce and China Webmaster.

Adding an A Record

If you added a forwarding rule without configuring domain name access in Connecting a Non-website Service to AAD, add an A record to DNS.

The following steps use the China Telecom line package as an example.

  1. Log in to the management console. Click Service List. Under Network, click Domain Name Service. The DNS console is displayed.
  2. In the navigation pane on the left, choose DNS Resolution > Public Zones. Then click the desired domain name in the list.
  3. Click Add Record Set.
  4. Add an A record. For details, see Table 2.

    Figure 2 Adding an A record set
    Table 2 Parameters for adding an A record - China Telecom

    Parameter

    Description

    Name

    Domain name (You do not need to manually add the suffix.)

    Type

    Record set type

    Select A – Map domains to IPv4 addresses.

    Alias

    Whether to associate the record set with a cloud resource name

    Select No.

    Line

    Resolution line. The DNS server will return the IP address of the specified line based on the source of visitors.

    Select ISP and China Telecom.

    Value

    IPv4 addresses mapped to the domain name

    Enter the high-defense IP address of the China Telecom line.

  5. Click OK.

The DNS configuration takes effect after a period of time. In this period, you can test the domain name resolution using some online test tools such as 17ce and China Webmaster.