Click to See Complete Forum and Search --> : How to change


neos
10-14-2002, 06:51 AM
hi

I just install RedHat 7.3 ,b/w the installation its ask to enter IP address(192.168.0.50) and Primary Domain Ip address (192.168.0.1).
Now i want to change Primary Domain IP address (192.168.0.1) to 192.168.0.50.
What is the command to change it???
Plz help me out.:(

cowanrl
10-14-2002, 12:35 PM
If my Primary Domain IP address you mean your Primary DNS Server, the best way to change it is to edit the config file that actually contains your DNS server information. The file is /etc/resolv.conf.

Right now you should see a line in that file that says:

nameserver 192.168.0.1

Change it to say:

nameserver 192.168.0.50

and save it. You shouldn't need to restart Linux for it to take affect.

You can also change it with GUI Network Config tool that comes with RH 7.3. I don't know whether you are using KDE or Gnome so just open a terminal window and execute:

neat

to start it. It will prompt you for the root password. Just click on the DNS tab and enter the new address.