Operating System - HP-UX
1834814 Members
2670 Online
110070 Solutions
New Discussion

LAN access to HPUX11 very slow when problems with external DNS

 
David Mann
Occasional Contributor

LAN access to HPUX11 very slow when problems with external DNS

We have problems accessing our HPUX11 box via the LAN sometimes when resolv.conf and nsswitch.conf are set to find an external DNS server. I presume this happens when that server is down or slow (although netscape seems to work ok). The contents of the two files are as follows:

resolv.conf:

nameserver 194.73.73.95
nameserver 194.73.73.94

nsswitch.conf:

hosts: files [NOTFOUND=continue] dns

What can I change for our system to function OK when the DNS server is playing up.

Cheers,

Dave
7 REPLIES 7
Jeff Schussele
Honored Contributor

Re: LAN access to HPUX11 very slow when problems with external DNS

Hi David,

Try to include as many of the "popular" hosts in the /etc/hosts file as is feasible.
Also if you know the primary DNS server is a problem you can flip the order of the DNS servers in the resolv.conf file & change will be immediate.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
harry d brown jr
Honored Contributor

Re: LAN access to HPUX11 very slow when problems with external DNS

If nameserver 194.73.73.95 isn't always responding - say down a lot, then switch the two lines around in resolv.conf:

nameserver 194.73.73.94
nameserver 194.73.73.95

Or get a better DNS server, you can easily have three DNS servers.

live free or die
harry

Live Free or Die
hpuxrox
Respected Contributor

Re: LAN access to HPUX11 very slow when problems with external DNS

You could set up a caching only dns server on the localhost.
Uday_S_Ankolekar
Honored Contributor

Re: LAN access to HPUX11 very slow when problems with external DNS

Hello,

Since you have nsswitch.conf file configured to look files and then DNS , You can put all the host names you usually talk in /etc/hosts.

Or else you can configure a secondary DNS server within your Local LAN and change the searchorder in resolve.conf accordingly.

Goodluck,
-USA..
Good Luck..
David Burgess
Esteemed Contributor

Re: LAN access to HPUX11 very slow when problems with external DNS

You could set yourself up an internal DNS server than has all your local clients in. This can then talk to the external servers.

This way if the external servers are slow / down you'll still be able to login as normal.

In fact even if the internal server doesn't have all the local clients in you'll still get a quicker login response.

HTH

Dave.
MANOJ SRIVASTAVA
Honored Contributor

Re: LAN access to HPUX11 very slow when problems with external DNS

Hi David

You cand o the following :

1. Please have a good /etc/hosts which ahs the satandard information for all teh servers , and have the /etc/nssswitch.conf resolve through /etc/hosts first .

2.Incase you know that the tehre is know problem witht the DNS then you can have 2 of then and then switch them in resolv.conf.



Manoj Srivastava
David Burgess
Esteemed Contributor

Re: LAN access to HPUX11 very slow when problems with external DNS

I seem to recall something about there being a bug in the search order in /etc/nsswitch.conf with dns on HPUX 11.00. Does that ring any bells?

Regards,

Dave.