Help Center> Data Ingestion Service> User Guide> Using DIS> Checking and Configuring DNS Information
Updated on 2024-03-05 GMT+08:00

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

  1. Log in to the ECS console.
  2. In the navigation tree of the ECS console, choose Elastic Cloud Server.
  3. 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.
  4. On the ECS details page, click the VPC name or ID.

    The Network Console is then launched.

  5. In the right pane of the Network Console, click the VPC name or ID.

    A page with details of the VPC is then displayed.

  6. Choose Subnets from the left navigation bar and click the subnet name or ID in the subnet list to access the VPC subnet page.
  7. On the subnet details page, click Modify next to DNS Server Address in the Gateway and DNS Information area.
  8. Enter the IP address of the DNS server in Edit DNS Server Address and click OK.
  9. 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.