If you have deployed ECSs and other cloud services on the cloud, you can configure private domain names for the ECSs so that they can communicate using domain names within VPCs.
You can create any private zones for domain names that are unique within VPCs. You do not need to register the domain names.
This section describes how to configure a private zone for a private domain name and add an A record set.
You have created an ECS and obtained its VPC name and private IP address.
Figure 1 shows the process for configuring a private zone for a domain name.
Create a private zone to allow access to your ECS using a private domain name.
The DNS console is displayed.
The Private Zones page is displayed.
For details about more parameters, see Creating a Private Zone.
Click the zone name to view zone details. You can view SOA and NS record sets automatically generated by the system.
To access the ECS using example.com, add an A record set.
The Record Sets page is displayed.
Retain the default values for other parameters. For details, see Adding an A Record Set.
View the added record set in the record set list of the zone and ensure that the status of the record set is Normal.
To ensure that private domain names can be resolved in a VPC, change the DNS servers for the VPC subnet to those provided by the DNS service.
Query the private DNS servers provided by the DNS service
The DNS console is displayed.
The Private Zones page is displayed.
Change the DNS servers
On the VPC console, change the DNS servers of the VPC subnet.
For details, see Modifying a Subnet.