Help Center> Domain Name Service> User Guide> Record Sets> Adding Record Sets> Record Set Types and Configuration Rules
Updated on 2024-01-04 GMT+08:00

Record Set Types and Configuration Rules

Record Set Types

Table 1 describes the record set types.

  • Record set types in public zones: A, CNAME, MX, AAAA, TXT, SRV, NS, SOA, and CAA
  • Record set types in private zones: A, CNAME, MX, AAAA, TXT, SRV, SOA, and PTR
Table 1 Record set types

Record Set Type

Description

Value

Example

A

Maps domains to IPv4 addresses.

IPv4 addresses mapped to the domain name

You can enter a maximum of 50 record values, each on a separate line.

192.168.12.2

192.168.12.3

CNAME

Maps one domain name to another domain name or multiple domain names to one domain name.

Domain name alias. You can enter only one domain name.

www.example.com

MX

Maps domain names to email servers.

Email server address

You can enter a maximum of 50 record values, each on a separate line.

The format is [priority][mail server host name].

Configuration rules:
  • priority: priority for an email server to receive emails. A smaller value indicates a higher priority.
  • mail server host name: domain name provided by the email service provider

10 mailserver.example.com.

20 mailserver2.example.com.

AAAA

Maps domain names to IPv6 addresses.

IPv6 addresses mapped to the domain name

You can enter a maximum of 50 record values, each on a separate line.

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

TXT

Creates text records for domain names. It is usually used in the following scenarios:

  • To record DKIM public keys to prevent email fraud.
  • To record the identity of domain name owners to facilitate domain name retrieval.

Text content

Configuration rules:

  • Text record values must be enclosed in double quotation marks.
  • One or more text record values are supported, each on a separate line.

    A maximum of 50 text record values can be entered.

  • A single text record value can contain multiple character strings, each of which is double quoted and separated from others using a space.

    One character string cannot exceed 255 characters.

    A value must not exceed 4096 characters.

  • The value cannot be left blank.
  • The text cannot contain a backslash (\).
  • Single text record:

    "aaa"

  • Multiple text records:

    "bbb"

    "ccc"

  • A text record that contains multiple strings:

    "ddd" "eee" "fff"

  • Text record in SPF format:

    "v=spf1 a mx -all"

    This value indicates that only IP addresses in the A and MX record sets are allowed to send emails using this domain name.

SRV

Records servers providing specific services.

Server address

You can enter a maximum of 50 record values, each on a separate line.

The value format is [priority] [weight] [port number] [server address].

Configuration rules:

  • The priority, weight, and port number range from 0 to 65535.
  • A smaller value indicates a higher priority.
  • A larger value indicates a larger weight.
  • The server address is the domain name of the target server.

    Ensure that the domain name can be resolved.

NOTE:

If the record set values have the same priority, requests to the domain name will be routed based on weights.

2 1 2355 example_server.test.com

NS

Delegates subdomains to other name servers.

  • For public zones, an NS record set is automatically created, and you can add NS record sets for subdomains.
  • For private zones, an NS record set is automatically created, and you cannot add other NS record sets.

DNS server address

You can enter a maximum of 50 record values, each on a separate line.

ns1.example.net

ns2.example.net

SOA

Identifies the base information about a domain name. The SOA record set is automatically generated by the DNS service and cannot be added manually.

This type of record set is created by default and cannot be added manually.

This type of record set is created by default and cannot be added manually.

CAA

Grants certificate issuing permissions to certificate authorities (CAs). CAA record sets can prevent the issuance of unauthorized HTTPS certificates.

CA to be authorized to issue certificates for a domain name or its subdomains

You can enter a maximum of 50 record values, each on a separate line.

The format is [flag] [tag] [value].

Configuration rules:

  • flag: CA identifier, an unsigned character ranging from 0 to 255. Usually, the value is set to 0.
  • tag: You can enter 1 to 15 characters, consisting of letters and digits from 0 to 9. The tag can be one of the following:
    • issue: authorizes a CA to issue all types of certificates.
    • issuewild: authorizes a CA to issue wildcard certificates.
    • iodef: requests notifications once a CA receives invalid certificate requests.
  • value: authorized CA or email address/URL required for notification once the CA receives invalid certificate requests. The value depends on the value of tag and must be enclosed in quotation marks (""). The value can contain a maximum of 255 characters, consisting of letters, digits, spaces, and special characters -#*?&_~=:;.@+^/!%

0 issue "ca.abc.com"

0 issuewild "ca.def.com"

0 iodef "mailto:admin@domain.com"

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

PTR

Maps IP addresses to domain names.

Private domain name mapped to the private IP address. You can enter only one domain name.

www.example.com