Create recordsets

A recordset is a group of resource records that provide mappings between domain names and IP addresses.

Create a single recordset

  1. On the top navigation bar, click Cloud Services, and then select DNS from the Network menu.

  1. Click a private domain name.

  1. Click Create on the Recordsets tab.

  1. Configure recordset parameters as described in Table-1, and then click OK.

Table-1 Configuring recordset parameters

Parameter

Description

Name

Enter a domain name.

Type

Select a recordset type. A private domain name by default has one SOA record set and one NS recordset. The NS recordset specifies the primary authoritative DNS server for the domain name. The SOA recordset specifies the authoritative DNS servers for the domain name. You cannot edit or delete the two recordsets, and you cannot create NS or SOA recordsets.

A

Points a domain name to an IPv4 address.

CNAME

Points one domain name to another domain name. This recordset type is used to map multiple domain names to the same IP address.

AAAA

Points a domain name to an IPv6 address.

PTR

Points an IP address to a domain name, which is known as reverse DNS. To add PTR recordsets for a domain name, make sure the domain name is in the X.X.X.in-addr.arpa. format. For example, to point the IP address of A.B.C.D to abc.example.org, you must create private domain name C.B.A.in-addr.arpa. and add a PTR recordset with a name of D and a value of abc.example.org for the domain name.

TTL (S)

Set the lifetime of records on cloud DNS servers. If you set the TTL for both a domain name and its recordsets, the smaller TTL takes effect.

Records

Enter the IP addresses mapped to the domain name. Enter one IP address per row. If you add a PTR recordset, enter a domain name.

 

Add hosts as A recordsets

After you add a host, a record whose name contains the host name and private domain name will be generated. For the configuration to take effect, make sure the host name or private domain name is not too long.

Prerequisites

You have attached a private domain name to a VPC or a router in a classic network.

Add hosts in a VPC as A recordsets

Perform this task after you attach a private domain name to a VPC. The system adds the specified hosts in the VPC as A records automatically. An A record added in this task is named with the corresponding host name.

  1. On the top navigation bar, click Cloud Services, and then select DNS from the Network menu.

  1. Click a private domain name.

  1. Click the Host Records tab, and then click Create.

  1. Select a VPC attached to the private domain name and one or multiple hosts in the VPC, and then click OK.

Add hosts in a subnet on a classic network as A recordsets

Perform this task after you attach a private domain name to a router in a classic network. The system adds the specified hosts as A records automatically. An A record added in this task is named with the corresponding host name.

  1. On the top navigation bar, click Cloud Services, and then select DNS from the Network menu.

  1. Click a private domain name.

  1. Click the Host Records tab, and then click Create.

  1. Select a router attached to the private domain name and one or multiple hosts in the subnets to which the router is attached, and then click OK.

Create host name records

For cloud hosts in a VPC or a subnet on a classic network that is not attached to any private domain name, you can create a single recordset for each cloud host to add them as A recordsets. An A recordset added in this task is named with the corresponding host name. For more information, see "Create a single recordset."

Table-2 Configuring recordset parameters

Parameter

Description

Name

Enter a domain name.

Type

Select A-Points a domain name to an IPv4 address.

Records

Enter the host IP address.