Help Center/ Virtual Private Cloud/ FAQs/ VPCs and Subnets/ What Are the Impacts of Changing the DNS Server Addresses of a Subnet on Cloud Server Configurations?
Updated on 2025-08-27 GMT+08:00

What Are the Impacts of Changing the DNS Server Addresses of a Subnet on Cloud Server Configurations?

Figure 1 shows the DNS server addresses of a subnet. If you change the DNS server addresses of the subnet, the nameserver configuration in the /etc/resolv.conf file of all cloud servers in the subnet will also change. For details, see Figure 2.

Figure 1 Subnet DNS server addresses
Figure 2 ECS /etc/resolv.conf file

After the DNS server addresses of the subnet are changed, the nameserver configuration of the cloud servers does not take effect immediately. Table 1 shows how the DNS server address change takes effect.

Table 1 Ways to apply new DNS server addresses

Cloud Server

Ways to Apply Change

New cloud servers in a subnet

Cloud servers newly added to a subnet will use the new DNS server addresses automatically. No additional configuration is required.

Existing cloud servers in a subnet