Checking and Configuring DNS Information
By default, an Elastic Cloud Server (ECS) is configured with two external domain name system (DNS) servers.
# Generated by NetworkManager 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 NetworkManager 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 NICs 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.
- Choose Subnets from the left navigation bar and click the subnet name or ID in the subnet list to access the VPC subnet page.
- On the subnet details page, click Modify next to DNS Server Address in the Gateway and DNS Information area.
- Enter the IP address of the DNS server in Edit DNS Server Address 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 NetworkManager 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot