Checking and Configuring DNS Information
By default, an Elastic Cloud Server (ECS) is configured with two external domain name system (DNS) servers.
# Generated by NetwordManager search openstacklocal nameserver 114.114.114.114 nameserver 114.114.115.115
If the ECS you will use does not have an elastic IP address (EIP) or you do not want to use an EIP to transmit the traffic load generated during the use of AEI_Register.sh and fisclient programs, add a DNS server in configuration file /etc/resolv.conf.
XXX.XXX.XXX.XXX is the IP address of the DNS server.
# Generated by NetwordManager search openstacklocal nameserver XXX.XXX.XXX.XXX nameserver 114.114.114.114 nameserver 114.114.115.115
- The new DNS server address must be placed above all the existing DNS server addresses.
- The DNS configuration takes effect immediately after modifications to the /etc/resolv.conf file are saved.
Modifications to the /etc/resolv.conf file become invalid after the ECS restarts. In this case, you need to reconfigure the file. If you do not want to reconfigure the file each time after restarting the ECS, perform the following steps to modify the subnet information of the Virtual Private Cloud (VPC) to which the ECS belongs and add DNS server addresses to the subnet to which the ECS belongs.
Procedure
- Log in to the ECS console.
- In the navigation tree of the ECS Console, choose Elastic Cloud Server.
- On the ECS details page, click the NIC tab. Expand details of a chosen NIC and view the name of the subnet to which the ECS belongs.
- On the ECS details page, click the VPC name or ID.
The Network Console is then launched.
- In the right pane of the Network Console, click the VPC name or ID.
A page with details of the VPC is then displayed.
- On the VPC details page, click the Subnet tab. On the Subnet tab page, click the name or ID of the subnet to which the ECS belongs.
A page with details of the subnet is then displayed.
- On the subnet details page, click Modify next to DNS Server Address.
- Enter the IP address of the DNS server in DNS Server Address 1 and click OK.
- Restart the ECS and check that the /etc/resolv.conf file contains the new DNS server address which is placed in the front of other DNS server addresses.
# Generated by NetwordManager search openstacklocal nameserver XXX.XXX.XXX.XXX nameserver 114.114.115.115
Modifying the subnet information of a VPC affects all ECSs in this subnet.
Last Article: Using DIS
Next Article: Uploading Data by Using Agent
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.