How Can I Access an ECS Using Its Host Name?
The DNS service allows you to create private zones for any top-level domain names except .com.
If you set the name of an ECS to ecs01, you can create a private zone for ecs01 and add an A record to map ecs01 to the private IP address of the ECS so that the ECS can be accessed using its host name.
Procedure
- Go to the Private Zones page.
- Click Create Private Zone. In the displayed dialog box, set the domain name to ecs01.
- Click OK.
You can view the created private zone on the Private Zones page.
- Click the domain name.
- Click Add Record Set.
Add an A record set to the zone.
- Set Type to A – Map domains to IPv4 addresses.
- Leave the Name field blank.
- Set Value to the private IP address of the ECS, for example, 192.168.1.10.
- Click OK.
After the record set is added, you can use ecs01 to access the ECS whose private IP address is 192.168.1.10 in the associated VPC.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot