If you want to use a private domain name to access ECSs configured with IPv4 addresses, you can add an A record set for the domain name.
For more information about each type of record sets, see Record Set Types and Configuration Rules.
You have an ECS and obtained an IPv4 address.
The zone list is displayed.
in the upper left corner and select the desired region and project.The Add Record Set dialog box is displayed.
Parameter | Description | Example Value |
|---|---|---|
Type | Type of the record set. A message may be displayed, indicating that the record set you are trying to add conflicts with an existing record set of the zone. | A – Map domains to IPv4 addresses |
Name | Prefix of the domain name to be resolved. For example, if the domain name is example.com, the prefix can be as follows:
| www |
TTL (s) | Cache duration of the record set on a local DNS server, in seconds. The value ranges from 1 to 2147483647, and the default value is 300. If your service address changes frequently, set TTL to a smaller value. | 300 |
Value | IPv4 addresses mapped to the domain name. You can enter up to 50 different IP addresses, each on a separate line. | 192.168.12.2 192.168.12.3 |
Tag | (Optional) Identifier of the record set. Each tag contains a key and a value. You can add up to 10 tags to a record set. For details about tag key and value requirements, see Table 2. | example_key1 example_value1 |
Description | (Optional) Supplementary information about the record set. The description can contain no more than 255 characters. | - |
Parameter | Requirements | Example Value |
|---|---|---|
Key |
| example_key1 |
Value |
| example_value1 |
The added record set is in the Normal state.
For details about how to configure A record sets, see Configuring Private Domain Name Resolution for ECSs.