Adding a DNS server IP address

This operation enables you to add a DNS server IP address on the eReplication server.

Prerequisites

Procedure

  1. Use PuTTY to log in to the Euler server as user root.
  2. Run the following command to prevent PuTTY from exiting due to session timeout:

    TMOUT=0

    After you run this command, the system continues to run when no operation is performed, resulting a risk. For security purposes, you are advised to run the exit command to exit the system after completing your operations.

  3. Run the vi /etc/resolv.conf command to edit the configuration file of the DNS server.

    The following command output is displayed:

    [root@localhost ~]# vi /etc/resolv.conf 
     
    #search com 
    nameserver 10.10.10.10

  4. Enter i and press Enter to go to the edit mode.
  5. Enter the new DNS server IP address.

    Format: nameserver DNS server IP address

  6. Enter ESC and press Enter to go to the command mode.
  7. Enter :wq and press Enter to save the configuration and exit the edit mode.

Copyright © Huawei Technologies Co., Ltd.