1834814 Members
2345 Online
110070 Solutions
New Discussion

Modify /etc/resolv.conf

 
SOLVED
Go to solution
Federico_28
Occasional Contributor

Modify /etc/resolv.conf

Hi,
on our server hp 9000 11.00 I have to change the ip adsress of nameserver in /etc/resolv.conf.

I would like to know if it's enought change it in /etc/resolv.conf and /etc/hosts or there is another procedure ( does the system reboot ?)

Thanks in advance
2 REPLIES 2
Simon Hargrave
Honored Contributor
Solution

Re: Modify /etc/resolv.conf

A reboot is not required. Changing the nameserver entry(ies) in /etc/resolv.conf are sufficient to refer to new servers.

If you refer by name rather than ip in /etc/resolv.conf, then you will also haev to change /etc/hosts as you say.
Muthukumar_5
Honored Contributor

Re: Modify /etc/resolv.conf

If you are going to change nameserver entry in /etc/resolv.conf no need for reboot :)

hosts: entry in /etc/nsswitch.conf file may be as,

hosts: dns files

Resolvation will do on dns using /etc/resolv.conf , files /etc/hosts ... etc.

If you have added nameserver entry on /etc/resolv.conf then try to check as,
# nslookup hostname
Is it trying to make resolvation on nameserver which added newly.

If so no problem. else check connectivity.
Easy to suggest when don't know about the problem!