Updated on 2025-08-18 GMT+08:00

Configuring an Alias Record

Scenarios

You can configure an alias for a DNS record to associate the record with Huawei Cloud service resource instance. When configuring the alias, set the CNAME address of the instance to the alias domain name.

Compared with CNAME record sets, alias records support top-level domain names and do not conflict with CNAME record sets of the top-level domain names.

This topic describes how to add an alias record set.

Constraints

  • You can only add alias records for public zones.
  • NS, CNAME, explicit URL, and implicit URL records cannot be associated with cloud service resource instances.
  • Do not configure alias records for domain names for which DNSSEC has been enabled. Otherwise, the resolution does not take effect.
  • Alias records can only be configured for Web Application Firewall.

Procedure

  1. Go to the Public Zones page.
  2. Click the name of the public zone to which you want to add an alias record set.
  3. Click Add Record Set.
  4. Configure the parameters based on Table 1.
    Table 1 Parameters for adding an A record set

    Parameter

    Description

    Example

    Type

    Type of the record set

    A – Map domains to IPv4 addresses

    Name

    Prefix of the domain name. (You do not need to enter the domain name.)

    The default value is the domain name.

    www

    Alias

    Whether to associate the record set with a cloud resource.

    Yes

    Alias Target

    Cloud resource to be associated with the alias record set, which includes the cloud resource name and alias target.

    Cloud services supported: Web Application Firewall

    Web Application Firewall and example.com

    Tag

    Identifier of the record set. Each tag contains a key and a value.

    You can add up to 20 tags for a record set.

    Tag key. The key:

    • Cannot be left blank.
    • Must be unique for each resource.
    • Can contain a maximum of 128 characters.
    • Cannot start or end with a space, or cannot start with _sys_. Only letters, digits, spaces, and the following special characters are allowed: _.:=+-@

    Tag value. The value:

    • Can be left blank.
    • Can contain a maximum of 255 characters.
    • Only letters, digits, spaces, and the following special characters are allowed: _.:/=+-@
    NOTE:

    If your organization has configured tag policies for the DNS service, you need to add tags to your record sets based on the tag policies. If you add a tag that does not comply with the tag policies, record sets may fail to be created. Contact the administrator to learn more about tag policies.

    example_key1

    example_value1

    Description

    Supplementary information about the record set.

    The description can contain a maximum of 255 characters.

    This is an alias record for EWP.

  5. Click OK.
  6. Switch back to the Record Sets tab.

    View the added record set in the record set list and ensure that its status is Normal.

    For details, see How Do I Check Whether a Record Set Has Taken Effect?