All Products
Search
Document Center

Cloud Firewall:Private DNS

Last Updated:Oct 30, 2026

In complex network architectures, business systems may rely on a private DNS, such as PrivateZone or a self-managed DNS, to resolve internal domain names to private IP addresses or specific service nodes. By default, Cloud Firewall uses the Alibaba Cloud DNS servers at 100.100.2.136 and 100.100.2.138 for dynamic resolution. This default behavior can cause a resolution mismatch. Enabling the private DNS synchronization feature allows Cloud Firewall to obtain domain name resolution results from your PrivateZone or self-managed DNS. This topic describes how to configure private DNS synchronization in Cloud Firewall.

Limitations

Private DNS synchronization is effective only for access control policies that use a domain name resolution mode based on dynamic DNS resolution or based on both FQDN and dynamic DNS resolution.

Solution overview

Before synchronization

After synchronizatio

Business systems rely on a private DNS for outbound domain name resolution, while Cloud Firewall uses the default Alibaba Cloud DNS servers (100.100.2.136 and 100.100.2.138). Resolving the same domain name with different DNS servers can produce inconsistent results, causing domain-based access control policies to fail.

To prevent policy failures from inconsistent DNS resolution, Cloud Firewall provides private DNS synchronization nodes. These nodes allow Cloud Firewall to automatically fetch resolution results from your PrivateZone or self-managed DNS. This ensures consistency across DNS servers and reduces the risk of policy failures.

Procedure

Before you begin, identify your DNS server type.

  • If you use PrivateZone, make sure that resolution records are configured.

  • If you use a self-managed DNS, make sure that domain-to-IP mappings are configured.

Step 1: Create a synchronization node

A synchronization node consists of an endpoint, a vSwitch, and an endpoint elastic network interface (ENI).

  1. Log on to the Cloud Firewall console. In the left-side navigation pane, choose Prevention Configuration > Address Book > Sync Nodes.

  2. On the Sync Nodes page, click the Private DNS tab and then click Create.

  3. Configure the following parameters to create the synchronization node.

    Parameter

    Description

    Synchronization Node Name

    Enter a custom name for the synchronization node.

    Private DNS Type

    If you use PrivateZone, the default DNS server IP addresses are 100.100.2.136 and 100.100.2.138.

    If you use a self-managed DNS, you must configure the primary DNS server address. The secondary DNS server address is optional.

    The primary DNS server is used first for domain name resolution. If the primary server fails to resolve a domain name, the secondary DNS server is used.

    • If the DNS server has a public IP address, make sure that the business VPC has a NAT Gateway to allow the synchronization node to access the DNS server.

    • If the DNS server has a private IP address, ensure that a network path exists between the business VPC and the DNS server.

    Region

    The region of the VPC to which the synchronization node belongs. The DNS resolution results for access control apply in this region. If your business spans two regions, you must create a synchronization node in each region and configure domain names for each node to apply private DNS resolution to access control policies in both regions.

    VPC

    Select the VPC for the synchronization node. This VPC is used to access the DNS server and can be any business VPC. We recommend that you do not select a VPC that contains a VPC firewall or NAT firewall.

    Zone and vSwitch

    Select the vSwitch for the synchronization node. You can also manually specify an IP address for the node's elastic network interface (ENI). The IP address must not conflict with any IP addresses that are in use in the vSwitch. If you do not specify an IP address, Cloud Firewall automatically assigns one.

    Two deployment options are available for disaster recovery:

    • Dual-zone scenario (Recommended): Create two synchronization nodes in different vSwitches across two different availability zones. This method provides disaster recovery.

    • Single-zone scenario: Create one synchronization node in a vSwitch within a single availability zone. This option does not provide disaster recovery.

    DNS Resolution Protocol

    • If you use PrivateZone, the protocol is UDP.

    • If you use a self-managed DNS, specify the server's protocol. UDP and TCP are supported.

    DNS Resolution Port

    • If you use PrivateZone, the resolution port is 53.

    • If you use a self-managed DNS, specify the server's port. The default port is 53.

    Firewall Border

    Select the firewall borders to which the synchronized DNS results will apply. A synchronization node can apply to multiple firewall borders, but each border in a region can be associated with only one synchronization node. You must configure at least one border. Applicable borders include:

    • Internet Border

    • NAT Border

    • VPC Border

    DNS Resolution Synchronization Cycle

    The synchronization interval is fixed at 5 minutes.

  4. Click Next to complete the creation process.

Step 2: Add domain names

  1. On the Private DNS tab, locate the synchronization node that you created and click Configure Domain Names in the Actions column.

  2. Click Add to add domain names.

    You can add up to 1,000 domain names at a time, with a total limit of 10,000. Wildcard domain names are not supported.

  3. Click View Resolution Details to verify that the resolved IP addresses match their expected IP addresses.

  4. After you add all the domain names, click OK.

Step 3: Configure a domain-based policy

Additional operations

  • Edit a node: To modify the name of a private DNS synchronization node or change the IP address of a self-managed DNS, find the node on the Private DNS tab and click Edit Instance in the Actions column.

  • Delete an instance: If you no longer need the synchronization node instance for private DNS resolution, on the Private DNS page, click Delete. Before you delete the synchronization node instance, you must delete the configured domain names.

    Important

    After you delete a synchronization node, the access control policies that use its resolution results will revert to using Alibaba Cloud DNS. This may introduce business risks. Proceed with caution.