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 2023-09-01 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 ECSs 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 Domain name effective policies

ECS

Effective Policy

New ECSs in the subnet

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

Existing ECSs in a subnet

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

  • Restart the ECS.
  • Restart the DHCP Client service: service dhcpd restart
  • Restart the network service: service network restart
NOTE:

The command for updating the DHCP configuration depends on the ECS OS. The commands here are only for your reference.