Operating System - HP-UX
1828196 Members
2200 Online
109975 Solutions
New Discussion

Initial connection slow since adding dns

 
George_Dodds
Honored Contributor

Initial connection slow since adding dns

I'm running HPUX11iv1 on a quad proc L2000 6gb ram and a gigabit lan card.

I've recently had to add one of my servers to a domain and start using the company dns servers.

I've noticed that when i connection to the ip addess of my server the initial connection seems slower.

Other people have complained of timeouts when connecting to the ip as well.

The Network is fine, no errors on nic or on the switch.

This just seems to have happened since i started using dns, but if i'm connecting to the ip address why should that make a difference?

Ta

George
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: Initial connection slow since adding dns

George,

How is your /etc/nsswitch.conf set up? It should be:

hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] nis


Pete

Pete
George_Dodds
Honored Contributor

Re: Initial connection slow since adding dns

/etc/nsswitch.conf entry

hosts: files [NOTFOUND=continue] dns
Muthukumar_5
Honored Contributor

Re: Initial connection slow since adding dns

what is your hosts: entry on /etc/nsswitch.conf

Based upon the setting only it is getting resolved.
You can verify them with nslookup and nsquery commands

Some discussion here to calculate timings as,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=684203

We will meet after your hosts: entry on nsswitch.conf file


Easy to suggest when don't know about the problem!
RAC_1
Honored Contributor

Re: Initial connection slow since adding dns

How does the /etc/resolv.conf looks like??
Is the response Ok, if you try connecting to ip_address instead of hostname???

You may want to have a look at the man page of resolver. You may also add retrans and retry options to resolv.conf.

The /etc/nsswitch.conf looks OK.
Anything on DNS server to denote that the address resolution for your server's ip address is taking time??

Anil
There is no substitute to HARDWORK
George_Dodds
Honored Contributor

Re: Initial connection slow since adding dns

see above for hosts: entry in nsswitch.conf

nslookup if fine, it is just the initial connection to the server itself is slow
Steve Lewis
Honored Contributor

Re: Initial connection slow since adding dns

If the users telnet to your server, then the server will attempt a name lookup for the client's IP before giving them a prompt.

This is a common cause of slow logins.

If you do a who -u then nsquery hosts [some-IP] you will be able to time how long it takes, as long as verifying the lookup method.

The fact that the users may connect to the server's IP and not the name makes no difference.
Muthukumar_5
Honored Contributor

Re: Initial connection slow since adding dns

The entry of

hosts: files [NOTFOUND=continue] dns

say's

If resolvation of host is not in files then continue to dns

Why can you use as,

hosts: files dns

And more,
IS your hostname of login on /etc/hosts or in dns server.

If it is on dns then use as,

hosts: dns files

And try to check resolvation of entry now as,


nsquery hosts hostname "dns"

IS it resolving on first nameserver / next or third one?

But "Initial connection slow since adding dns" makes only first time connection.

May be login service time problem too..





Easy to suggest when don't know about the problem!
Geoff Wild
Honored Contributor

Re: Initial connection slow since adding dns

One thing to check, is the FQDN set in /etc/hosts?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
George_Dodds
Honored Contributor

Re: Initial connection slow since adding dns

Yup FQDN is in hosts :)
harry d brown jr
Honored Contributor

Re: Initial connection slow since adding dns

Can you post your /etc/resolv.conf file?

This gives rules to DNS on how to behave. I bet if you looked at your DNS servers that they are trying to resolve names to the internet root servers before they append your domain name to the pc/ws name, which is why it's important to have a correctly configured resolv.conf file.

Also, what version of bind are you running?
run: what /usr/sbin/named
run: ps -ef | grep named
Do you have a file called /etc/named.conf?

live free or die
harry
Live Free or Die
George_Dodds
Honored Contributor

Re: Initial connection slow since adding dns

more /etc/resolv.conf
search unix.eu.primus eu.primus
nameserver *.*.29.39
nameserver *.*.29.38
nameserver *.*.29.37
nameserver *.*.100.10

named 8.1.2

root 13318 2047 1 16:04:24 pts/td 0:00 grep named


There is no named.conf

Just realised sendmail is whinging about the mail relay server -host unknown

Arrgh!