Operating System - HP-UX
1832777 Members
3252 Online
110045 Solutions
New Discussion

Re: Change DNS IP in resolv.conf need reboot ?

 
ckchua
Occasional Advisor

Change DNS IP in resolv.conf need reboot ?

Hi,

I have changes the dns ip in resolv.conf due to dns ip changes.

Shall I reboot the server after the changes ? If not, how can I check whether the changes take place. Please advise.

regards
ckchua
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: Change DNS IP in resolv.conf need reboot ?

You don't need to reboot the server. You can safely change the entries in /etc/resolv.conf.

To verify the changes, do trace in nslookup

#nslookup

>set swtrace
>some_server_name

It prints out the order in which it looks up the DNS. It also gives the Name Server (as specified in /etc/resolv.conf) to resolv the name.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Roger Baptiste
Honored Contributor

Re: Change DNS IP in resolv.conf need reboot ?

Ck,

There is no need to reboot the system
for changes in resolv.conf. It's a text file
whose entries act as pointer to the DNS server(s) for your system to resolve hostnames to IP address.
To verify whether the system is picking
the updated file content, run
command and in the nslookup command prompt
give a server name and check the output.

-raj
Take it easy.
Rainer von Bongartz
Honored Contributor

Re: Change DNS IP in resolv.conf need reboot ?

As we are not on NT here there is absolutely no need to reboot the system after this kind of change

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
John Bolene
Honored Contributor

Re: Change DNS IP in resolv.conf need reboot ?

No need to reboot, the change takes place immediately.

You can also do a
#nslookup
set debug
machine-to-lookup

and it will print out all the info and how it went about resolving the entry
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com