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.
Private Zones FAQs
- Why Is a Message Indicating Conflict with an Existing Record Set Displayed When I Add a Record Set?
- How Do I Change Default DNS Servers of an ECS to Huawei Cloud Private DNS Servers?
- How Can I Access an ECS Using Its Host Name?
- How Can I Map the Private IP Address of an ECS to a Domain Name?
- How Can I Use a Private Domain Name to Route Internet Traffic?
- Can I Use Private Domain Names Across Regions?
- Do I Need to Register Private Domain Names?
- Will a Deleted VPC Be Automatically Disassociated from the Private Zone?
- Are Private DNS Server Addresses the Same for All Users?
- What Are the Restrictions on Concurrent Private DNS Requests?
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.
Chatbotmore