Help Center> Domain Name Service> FAQs> Private Zones> How Can I Access an ECS Using Its Host Name?
Updated on 2024-03-13 GMT+08:00

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

  1. Go to the Private Zones page.
  2. Click Create Private Zone. In the displayed dialog box, set the domain name to ecs01.
  3. Click OK.

    You can view the created private zone on the Private Zones page.

  4. Click the domain name.

    The Record Sets page is displayed.

  5. 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.
  6. 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

more