Help Center/ Virtual Private Cloud/ FAQs/ VPCs and Subnets/ How Can I Make a Domain Name in a Subnet Take Effect Immediately After Being Changed?
Updated on 2025-08-27 GMT+08:00

How Can I Make a Domain Name in a Subnet Take Effect Immediately After Being Changed?

When you create a subnet, you can also configure domain names. To access a domain name, you only need to enter the domain name prefix and cloud servers in the subnet will automatically match the domain name suffix. After a subnet is created, you can change the configured domain names. Table 1 describes how to make the change to take effect.

Table 1 Ways to apply a domain name change

Cloud Server

Ways to Apply Change

New cloud servers in a subnet

Cloud servers newly added to a subnet will use the new domain names automatically. No additional configuration is required.

Existing cloud servers in a subnet

To use the new domain names, you can use either of the following method:

  • Restart the cloud server.
  • Restart the DHCP Client service: service dhcpd restart
  • Restart the network service: service network restart
NOTE:
  • The commands for updating the DHCP configuration depend on the cloud server OS. The commands here are only for your reference.
  • If the DHCP configuration is not updated, domain name changes take effect when existing cloud servers renew their DHCP lease before it expires. Learn more