Operating System - Linux
1829309 Members
2670 Online
109989 Solutions
New Discussion

Slow response with Telnet and FTP.

 
George Doller
Frequent Advisor

Slow response with Telnet and FTP.

Just last week we started having a problem with slow response time to get into telnet or ftp from a pc to any 1 of our 3 HP's. We've determined that if we have an entry in the host file on the HP and do a telnet or ftp 192.1.1.xxx the response comes right up. If we don't have an entry in the servers host file, it takes like 90 seconds. This just started happening last Wednesday. Before that things were fine. Everyone in systems and Networks say they didn't change anything. Has anyone experienced anything like this. Thank you
11 REPLIES 11
Olivier Drouin
Trusted Contributor

Re: Slow response with Telnet and FTP.

Most likely someone changed the DNS settings.

Check
/etc/resolv.conf ( check if it is ok).


Check
/etc/nsswitch.conf files

You should have a line more/less like this:

hosts: files nis dns


O
George Doller
Frequent Advisor

Re: Slow response with Telnet and FTP.

I posted this in Linux instead of HP by mistake, but any comments would be appreciated. Thank you
Olivier Drouin
Trusted Contributor

Re: Slow response with Telnet and FTP.

I think this applies for hpux as well but I may be wrong.
George Doller
Frequent Advisor

Re: Slow response with Telnet and FTP.

These files haven't changed, but thanks.
Olivier Drouin
Trusted Contributor

Re: Slow response with Telnet and FTP.

Are you using NIS ?


If you do a

beetle:~$ nslookup box01

is it coming with an answer fast ??
Olivier Drouin
Trusted Contributor

Re: Slow response with Telnet and FTP.

For example my

hosts entry in /etc/nsswitch.conf is:

hosts: files [NOTFOUND=continue] nis [NOTFOUND=continue] dns


if I do a nslookup on a hosts that is only resolvable by DNS it outputs like this. It takes about 1 second.


bash-2.02# nslookup nodisclose.bell.ca
Using /etc/hosts on: stan

looking up FILES
Trying NIS
Trying DNS
Non-authoritative answer:
Name: nondisclose.bell.ca
Addresses: 198.XX.XX.XX, 198.XX.XX.XX


Do you have the same behavior ?
Steven E. Protter
Exalted Contributor

Re: Slow response with Telnet and FTP.

There may be less of us Linux heads but your issue is standard Unix.

The most likely cause of this on an HP box is slow DNS server response(Microsoft DNS?) or network issues on the hp box.

lanadmin -x 0

Change the number to fit your main interface.

If you don't get correct speed and duplex, consider creating a /etc/rc.config.d/hpbtlanconf file with speed and duplex hard coded in.

Don't do this with a Gigabit lan card.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Martin P.J. Zinser
Honored Contributor

Re: Slow response with Telnet and FTP.

Definitly sounds like a problem with name resolution. You system is most probably can not reverse translate the identity of the incoming host and the delay you see is the timeout of the nameresolution. What happens if you try to resolve these hosts manually?

Greetings, Martin
K.C. Chan
Trusted Contributor

Re: Slow response with Telnet and FTP.

Under the assumption that your dns is functioning properly, have you make sure that your host uses dns first instead of /etc/hosts to resolve name lookup? I have not work with hpux for quite sometime, but as I remember it; it should be located in /etc/nsswitch.conf.
Reputation of a thousand years can be determined by the conduct of an hour
George Doller
Frequent Advisor

Re: Slow response with Telnet and FTP.

Everything seems to be set right. I think we have a problem with the microsoft DNS. It is up and looks ok but I don't think it's doing what it should. I have the Network people looking at it.
Adam Moody_1
Trusted Contributor

Re: Slow response with Telnet and FTP.

First thing:
Are your FTP and Telnet daemons configured to do a reverse lookup for logging purposes?
Does your Linux server have the required suffix searches in resolv.conf?

It really sounds like your server cannot do a reverse lookup on the workstations, so check: resolv.conf, and that reverse lookup pointers exist on the DNS servers.

Can you do a reverse lookup on the client PC IP addresses (clear DNS cache before doing this).

I'm guessing you DNS people cleared out unwanted DNS entries for workstations thinking they're not needed anymore..

Hope this helps.
Cheers
Adam