• Domain Name Service

dns
  1. Help Center
  2. Domain Name Service
  3. User Guide
  4. Record Set Management
  5. Managing Record Sets

Managing Record Sets

Querying Record Set Details

  1. Log in to the management console.
  2. In the Network category, click Domain Name Service.

    The DNS console is displayed.

  3. On the Dashboard page, click Public Zones or Private Zones under My Resources.

    The zone list is displayed.

  4. (Optional) If you have selected Private Zones, click on the upper left to select the region and project.
  5. Click a zone name.

    The record set page is displayed.

  6. View the record set details.
    NOTE:

    In the record set list, you can click in the Name and Type columns to sort the record sets.

Adding a Record Set

The DNS service supports multiple types of record sets. Each record set type applies to a specified application scenario. You can choose the record set types as needed.

  1. Log in to the management console.
  2. In the Network category, click Domain Name Service.

    The DNS console is displayed.

  3. In the navigation pane, choose Public Zones or Private Zones.

    The zone list is displayed.

  4. (Optional) If you have selected Private Zones, click on the upper left to select the region and project.
  5. Click the name of a zone.
  6. Click Add Record Set.

    The Add Record Set box is displayed.

    Figure 1 Add Record Set
  7. Set the required parameters.
    • Table 1 lists the parameters required for adding a record set of the A type.
      Table 1 Parameters required for adding a record set of the A type

      Parameter

      Description

      Example Value

      Name

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

      The default value is the zone name.

      www

      Type

      Type of the record set

      A – Map domains to IPv4 addresses

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      IPv4 addresses mapped to the domain name

      Every two IPv4 addresses are separated using a line break.

      192.168.12.2

      192.168.12.3

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the domain name

      -

      Table 2 Tag key and value requirements

      Parameter

      Requirement

      Example Value

      Key

      • Cannot be left blank.
      • Must be unique for each resource.
      • Consists of at most 36 characters.
      • Contains only letters, digits, hyphens (-), and underscores (_).

      example_key1

      Value

      • Cannot be left blank.
      • Consists of at most 43 characters.
      • Contains only letters, digits, hyphens (-), and underscores (_).

      example_value1

    • Table 3 lists the parameters required for adding a record set of the AAAA type.
      Table 3 Parameters required for adding a record set of the AAAA type

      Parameter

      Description

      Example Value

      Name

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

      The default value is the zone name.

      www

      Type

      Type of the record set

      AAAA – Map domains to IPv6 addresses

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      IPv6 addresses mapped to the domain name

      Every two IPv6 addresses are separated using a line break.

      ff03:0db8:85a3:0:0:8a2e:0370:7334

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the domain name

      The description cannot exceed 255 characters.

      -

    • Table 4 lists the parameters required for adding a record set of the NS type.
      NOTE:

      You can create NS record sets only in public zones.

      Table 4 Parameters required for adding a record set of the NS type

      Parameter

      Description

      Example Value

      Name

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

      abc

      Type

      Type of the record set

      NS – Delegate subdomains to other name servers

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      NS address (DNS server domain name)

      Two domain names are separated using a line break.

      ns1.example.net

      ns2.example.net

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the domain name

      The description cannot exceed 255 characters.

      -

    • Table 5 lists the parameters required for adding a record set of the CNAME type.
      Table 5 Parameters required for adding a record set of the CNAME type

      Parameter

      Description

      Example Value

      Name

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

      alias

      Type

      Type of the record set

      CNAME – Map one domain to another

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      Domain name mapped to the alias

      webserver01.example.com

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the domain name

      The description cannot exceed 255 characters.

      -

    • Table 6 lists the parameters required for adding a record set of the MX type.
      Table 6 Parameters required for adding a record set of the MX type

      Parameter

      Description

      Example Value

      Name

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

      The default value is the zone name.

      Usually, the value is blank.

      Type

      Type of the record set

      MX – Map domains to email servers

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      Mail server domain name

      Format: [priority] [mail server host name]

      priority specifies the priority for a mail server to receive emails. A smaller value indicates a higher priority.

      Set this parameter to the domain name provided by the email service provider.

      10 mailserver.example.com

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the domain name

      The description cannot exceed 255 characters.

      -

    • Table 7 lists the parameters required for adding a record set of the TXT type.
      Table 7 Parameters required for adding a record set of the TXT type

      Parameter

      Description

      Example Value

      Name

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

      The default value is the zone name.

      abc

      Type

      Type of the record set

      TXT – Specify text records

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      Enter the text content based on requirements:

      • One or more text records are supported. Every two text records are separated with a line break.
      • A single text record can contain multiple text character strings, each of which is double quoted and separated from others using a space.
      • Each text character string within a pair of double quotation marks contains a maximum of 255 characters.
      • One text record must not exceed 4096 characters.
      • The text value cannot be left empty.
      • The text cannot contain a backslash (\).
      • The text only supports English characters.

      "aaa"

      "bbb" "ccc" "ddd"

      "bbb" "ccc" "ddd" indicates a text record, and "bbb" is a text character string.

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the domain name

      The description cannot exceed 255 characters.

      -

    • Table 8 lists the parameters required for adding a record set of the SRV type.
      Table 8 Parameters required for adding a record set of the SRV type

      Parameter

      Description

      Example Value

      Name

      Service (for example, FTP, SSH, or SIP) provided over the specified protocol (for example, TCP or UDP) on a host

      The format is _Service name._Protocol.

      _ftp._tcp: indicates that the host provides the FTP service over TCP.

      Type

      Type of the record set

      SRV – Record servers providing specific services

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      The value is composed of the priority, weight, port number, and host domain name.

      • The priority, weight, and port number are a digit ranging from 0 to 65535.
      • The system checks the priority first. Only when the priority values are the same does the system check the weight values.
      • A smaller priority value indicates a higher priority.
      • The larger weight value indicates a larger weight.
      • The host domain name must be mapped to a functional host.

      2 1 2355 example_server.test.com

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the domain name

      -

    • Table 9 lists the parameters required for adding a record set of the CAA type.
      NOTE:

      You can create CAA record sets only in public zones.

      Table 9 Parameters required for adding a record set of the CAA type

      Parameter

      Description

      Example Value

      Name

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

      The default value is the zone name.

      Usually, the value is blank.

      Type

      Type of the record

      CAA – Grant certificate issuing permissions to CAs

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      Format: [flag] [tag] [value]

      • flag: certificate authority (CA) identifier, which is an unsigned character ranging from 0 to 255. Usually, it is specified to 0.
      • tag: a string of 1 to 15 characters composed of upper- and lower-case letters and digits from 0 to 9. The tag can be the following:
        • issue: authorizes CAs to issue all types of certificates.
        • issuewild: authorizes CAs to issue wildcard certificates.
        • iodef: requests notifications once CAs receive invalid certificate requests.
      • value: authorized CA or email address/URL for notification once the CA receives invalid certificate requests, depending on the setting of the tag. The value must be enclosed in quotation marks (""). It is a string of 1 to 255 characters, including letters, digits, spaces, and special characters -#*?&_~=:;.@+^/!%

      domain.com. CAA 0 issue "ca.abc.com"

      domain.com. CAA 0 issuewild "ca.def.com"

      domain.com. CAA 0 iodef "mailto:admin@domain.com"

      domain.com. CAA 0 iodef "http:// domain.com/log/"

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the domain name

      The description cannot exceed 255 characters.

      -

    • Table 10 lists the parameters required for adding a record set of the PTR type.
      NOTE:

      PTR records sets take effect only in a private zone whose domain name suffix is in-addr.arpa. For details about how to add PTR records in a public zone, see section Managing PTR Records.

      Table 10 Parameters required for adding a record set of the PTR type

      Parameter

      Description

      Example Value

      Name

      Name of the PTR record

      10.1.168

      For example, if the IP address is 192.168.1.10, the name of the PTR record is 10.1.168.192.in-addr.arpa.

      • If the private zone name is 192.in-addr.arpa, enter 10.1.168 in the box.
      • If the private zone name is 1.168.192.in-addr.arpa, enter 10 in the box.

      Type

      Type of the record

      PTR – Map IP addresses to domains

      TTL (s)

      Caching period of the record set (in seconds)

      The default value is 300s, that is, 5 min.

      Value

      Domain name mapped to the host name

      You can enter only one name at a time.

      host.example.com.

      Tag

      (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

      For details about tag key and value requirements, see Table 2.

      example_key1

      example_value1

      Description

      (Optional) Description of the PTR record

      -

Modifying a Record Set

If you find that the original configuration of a record set does not meet your service requirements, you can adjust its TTL, value, and description as needed.

  1. Log in to the management console.
  2. In the Network category, click Domain Name Service.

    The DNS console is displayed.

  3. On the Dashboard page, click Public Zones or Private Zones under My Resources.

    The zone list is displayed.

  4. (Optional) If you have selected Private Zones, click on the upper left to select the region and project.
  5. Click a zone name.

    The record set page is displayed.

  6. Locate the record set to be modified and click Modify under Operation.

    The Modify Record Set page is displayed.

  7. Change the TTL, value, and description of the record set as required.
  8. Click OK to save the change.

Deleting a Record Set

A record set can be deleted if it is not required. After the record set is deleted, the function of this type of record set will become invalid. For example, if a record set of the A type is deleted, the specified domain name cannot be resolved into an IPv4 address. If a record set of the CNAME type is deleted, the domain alias cannot be mapped to the specified domain name.

  1. Log in to the management console.
  2. In the Network category, click Domain Name Service.

    The DNS console is displayed.

  3. On the Dashboard page, click Public Zones or Private Zones under My Resources.

    The zone list is displayed.

  4. (Optional) If you have selected Private Zones, click on the upper left to select the region and project.
  5. Click a zone name.

    The record set page is displayed.

  6. Locate the record set to be deleted and click Delete under Operation.
  7. Click Yes.