Configuring the IP Address of the DNS Server

abrahim
abrahim  Diamond  (1)
7 years 10 months ago  View: 2846  Reply: 6
1F

This operation guide describes how to configure IP address of the DNS.


Conditions

Log in to the server as user root through telnet.


  1. Add, delete, view, or automatically add a route to the DNS server.
    • Adding a route.

      # route add Destination network address/mask gateway
      http://localhost:7904/pages/31185199/02/31185199/02/resources/public_sys-resources/icon-note.gif NOTE:

      Destination network address: refers to a network address or a host address.

    • Deleting a route.
      # # route delete Destination network address/mask gateway
    • Viewing a route.
      # netstat -rn
    • Adding a route automatical ly when the system is restarted.

      create the /etc/rc2.d/S97route file.

      # vi /etc/rc2.d/S97route 

      Write one or more route add Destination network address/mask gateway commands into the file.

  2. Changing the IP Address of the DNS Server.
    1. Run the following command to view the host name of the server.
      # hostname

      The system displays the host name of the server. This takes host name osssvr-1 as an example.

    2. View the /etc/hosts file to obtain the host name of the server and the IP addresses corresponding to the host names of the two Ethernet ports.
      # more /etc/hosts

      The system displays the following information:

      # # Internet host table # 127.0.0.1 localhost 192.168.8.11 osssvr-1 loghost omc.com 192.168.8.18 osssvr-1-ce0 192.168.8.19 osssvr-1-ce2 #6140 192.168.8.39 ST6140-1 192.168.8.40 ST6140-1

      According to the system output, the IP address corresponding to osssvr-1 is 192.168.8.11, that of osssvr-1-ce0 is 192.168.8.18, and that of osssvr-1-ce2 is 192.168.8.19.

    3. Run the following command to check the IP addresses:
      # ifconfig -a

      The system displays the IP addresses obtained in 2.b.Check whether the IP addresses meet the site requirements.

      • If the IP addresses do not meet the requirements, perform the following steps to change them.
      • If the IP addresses meet the requirements, you need not perform the following steps.
    4. Check whether the new IP address is already used.

      This section describes how to change the IP address of the server from 192.168.8.11 to 10.10.10.10, the physical IP addresses of the two Ethernet ports from 192.168.8.18 and 192.168.8.19 to 10.10.10.18 and 10.10.10.19.

      On the client PC whose IP address is on the same network segment as the new IP address, open the DOS command window and then run the ping 10.10.10.10, ping 10.10.10.18, ping 10.10.10.19 commands.

      • If the IP address can be successfully pinged, this new IP address is already used and you need to use another one.
      • If the IP address cannot be pinged, this new IP address is idle and can be used.
    5. Modify the gateway address information about the original network segment configured on the route switching device.
    6. Run the following commands to restart the DNS server.
      # sync; sync; sync; sync; sync; sync # /usr/sbin/shutdown -y -g0 -i6
Alaul
Alaul  Diamond 
7 years 10 months ago
2F
Thanks for the well done post.....
zsiddique
zsiddique  Platinum 
7 years 10 months ago
3F
It will enrich my knowledge..Thanks.
Alaul
Alaul  Diamond 
7 years 10 months ago
4F
Very Technical......
mjali
mjali  Platinum 
7 years 10 months ago
5F
Technically very sound and this is very rich doc.Thanks ..........
zsiddique
zsiddique  Platinum 
7 years 10 months ago
6F
Technical skill is very high.........
zsiddique
zsiddique  Platinum 
7 years 10 months ago
7F
Really useful of practical life .......