To associate a private zone with a Virtual Private Cloud (VPC), you must first create a Domain Name System (DNS) record for the private zone. In the VPC with which the private zone is associated, the private zone record overrides the DNS record for the same domain name on the public network.
Procedure
To create a DNS record for a private zone, follow these steps:
Log on to the Alibaba Cloud DNS console. In the left-side navigation pane, click PrivateZone.
On the PrivateZone page that appears, find the target private zone and click the zone name to go to the Resolution Settings page.
On the Resolution Settings page, click Add Record.In the dialog box that appears, set the parameters.
For more information about the record types supported by PrivateZone and how to use the records, see Record types supported by PrivateZone.
Examples
Create an A record
To create an A record for a private zone, see the configurations in the following figure.
Create a CNAME record
To create a CNAME record for a private zone, see the configurations in the following figure.
Note: You cannot create two or more CNAME records with the Resource Records parameter set to the same value. Nor can other types of records be created with the Resource Records parameter set to the same value as the CNAME record.
Create an MX record
To create an MX record for a private zone, see the configurations in the following figure.
Create a TXT record
To create a TXT record for a private zone, see the configurations in the following figure.
Create a PTR record
To create a pointer (PTR) record, you must first configure a reverse lookup zone. For more information, see reverse lookup and PTR records.