This topic describes how to configure Alibaba Cloud DNS PrivateZone (PrivateZone). This way, an Elastic Compute Service (ECS) instance in a virtual private cloud (VPC) that has no access to the Internet can call the Application Real-Time Monitoring Service (ARMS) API operations over an internal network of Alibaba Cloud.

Background information

ARMS provides public endpoints. If your ECS instance does not have a public bandwidth or a public IP address, you cannot send API requests by using tools such as Alibaba Cloud CLI or SDK. Alibaba Cloud provides PrivateZone to ensure that your ECS instance can send API requests over the Alibaba Cloud internal network. You can associate PrivateZone with the VPC in the region where your ECS instance is located.

Usage notes

  • You can configure PrivateZone only for regions that contain VPC-connected ECS instances. You cannot configure PrivateZone across regions.
  • We recommend that you use custom images that have Alibaba Cloud CLI or SDK deployed to create ECS instances. Otherwise, the ECS instances cannot load related dependencies without Internet access.
  • The following table describes the ARMS endpoints that support PrivateZone. Make sure that you use an endpoint listed in the table.
    Region Region ID CNAME record Endpoint
    China (Hangzhou) cn-hangzhou
    China (Shanghai) cn-shanghai
    China (Qingdao) cn-qingdao
    China (Beijing) cn-beijing
    China (Zhangjiakou) cn-zhangjiak
    China (Hohhot) cn-huhehaote
    China (Ulanqab) cn-wulanchabu
    China (Shenzhen) cn-shenzhen
    China (Heyuan) cn-heyuan
    China (Guangzhou) cn-guangzhou
    China (Chengdu) cn-chengdu
    China (Hong Kong) cn-hongkong
    Singapore (Singapore) ap-southeast-1
    Australia (Sydney) ap-southeast-2
    Malaysia (Kuala Lumpur) ap-southeast-3
    Indonesia (Jakarta) ap-southeast-5
    Japan (Tokyo) ap-northeast-1
    Germany (Frankfurt) eu-central-1
    UK (London) eu-west-1
    US (Virginia) us-east-1
    US (Silicon Valley) us-west-1
    India (Mumbai) ap-south-1
    Alibaba Gov Cloud cn-north-2-gov-1
    China East 1 Finance cn-hangzhou-finance
    China East 2 Finance cn-shanghai-finance-1
    China South 1 Finance cn-shenzhen-finance-1


  1. Log on to the Alibaba Cloud DNS console.
  2. In the left-side navigation pane, click PrivateZone. On the PrivateZone page, click Add Zone.
  3. In the Add PrivateZone dialog box, set the following parameters and click OK.
    • Zone Name: Enter an ARMS endpoint that supports PrivateZone. In this example, enter
    • Subdomain recursive resolution proxy: If you select this option, when you query the subdomain names that are not configured in the zone namespace in the VPC, PrivateZone recursively resolves the subdomain names on the Internet. PrivateZone uses the recursive resolution result as the DNS response to your query and returns this response to the VPC.
    Add Private Zone
  4. On the PrivateZone page, find the created private zone in the zone list and click Configure in the Actions column.
  5. On the Resolution Settings page, click the Resolution Settings tab. On the Resolution Settings tab, click Add Record.
  6. In the Add Record dialog box, set the following parameters and click OK.
    • Type: Select CNAME from the drop-down list.
    • Resource Records: Enter @ to resolve the domain name.
    • Record Value: Enter the CNAME record of the corresponding region. For more information, see Usage notes.
    • TTL value: the time period during which recursive DNS caches the domain name resolution results. In this example, select 1 minute.
    Add Record
  7. On the PrivateZone page, find the created private zone and click Bind VPC in the Actions column.
  8. In the Bind VPC panel, select the same region as the created private zone, select the VPC where your ECS instance is located, and then click Confirm. You can select multiple VPCs.
    Bind VPC

Verify the result

After you associate the VPC with the created private zone, you can log on to your ECS instance to check whether the instance can access the endpoint of the corresponding region. For more information, see Connect to a Linux instance by using password authentication. is used in this example. Run the ping command to test the status of packet sending and receiving.


If a result similar to the following content appears, your ECS instance can access the ARMS endpoint of the region.

Ping Private Zone