Updated on 2026-07-08 GMT+08:00

Associating a VPC with a Private Zone

Scenarios

Associate a VPC with a private zone so that the private domain name can be resolved within this VPC.

Constraints

  • The VPC associated with a private zone must be the one where your servers (such as ECSs) are. Otherwise, the private domain name cannot be resolved.
  • A private zone with recursive resolution proxy for subdomains, DNS Resolver, weight, or access logging enabled cannot be associated with a VPC that contains CloudDCN or CloudPond subnets. Otherwise, resolution will fail.

Procedure

  1. Go to the Private Zones page.
  2. Click in the upper left corner and select the desired region and project.
  3. Locate the private zone with which you want to associate the VPC and click Associate VPC in the Operation column.
  4. Select the VPC you want to associate.

    If no VPCs are available, create one on the VPC console and then associate the private zone with it.

  5. Click OK.

    The VPC is displayed in the Associated VPCs column.

    Figure 1 Associated VPCs