Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

DNS configuration question

SOLVED
Go to solution
Mauro Livi
Valued Contributor

DNS configuration question

Hi all,
We are changing DNS servers this weekend (basically one server is being shut down and another server will be used). The new server is already in operation and I've made the necessary changes to /etc/resolve.conf and /etc/hosts to reflect the new IP (i.e. added new server entries and commented out the old server entries)

As far as I can tell my HPUX servers are now using the new DNS server for name resolution and I've verified that by doing nslookup so that the result is:

Name Server: new DNS server name
Address: new DNS IP

Everything is exactly as mentioned above and to my knowledge that's the extent of what needs to be done. Just want to make sure I'm not missing anything.

Thanks
Mauro



5 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: DNS configuration question

Hi Mauro:

It appears that all is in order from your description.

Regards!

...JRF...
Mauro Livi
Valued Contributor

Re: DNS configuration question

Thanks JRF...thought so, just wanted to confirm.
Bill Hassell
Honored Contributor

Re: DNS configuration question

You may also want to use nsquery as it is more informative:

nsquery hosts abc.com
or
nsquery hosts 1.2.3.4

Always make sure that your nsswitch.conf exists and correctly specifies the order to resolve addresses.


Bill Hassell, sysadmin
Mauro Livi
Valued Contributor

Re: DNS configuration question

Good point Bill. Did nsquery and was also able to correctly resolve the name. I do have nsswitch.conf set up...in fact, in one server it looks at hosts first and on another looks at DNS first. In both cases, it was able to resolve.

Many thanks.
Mauro
Bill Hassell
Honored Contributor

Re: DNS configuration question

Just a recommendation: Always use hosts first. Not only is it much faster but you can bypass any updating delays (usually caused by other tasks that are more important). By putting the most important addresses (local servers) in /etc/hosts, DNS failures will not cause serious delays in your servers. And many backup programs (Data Protector for example) will query hostnames once for *EVERY* file that is backed up -- a very bad, but also very common, design flaw.


Bill Hassell, sysadmin