Adam wrote:

> Why is it that it took so long to get the telnet login prompt?  When I do
> "telnet HostX" I got:
> 
> Trying 10.1.64.69...
> Connected to HostX.
> Escape character is '^]'.
> 
> ... but it stops there for some 5 minutes before I could get the following:
> 
> Red Hat Linux release 5.0 (Hurricane)
> Kernel 2.0.32 on an i486
> login:

This looks like it could be a reverse DNS lookup (although they
usually only take 155 seconds to time out, it's conceivable that both
tcpd *and* telnetd are performing reverse lookups, which would double
the delay to 310 seconds, or about 5 minutes).

> Please correct me if I'm wrong:
> 
> At first I thought the telnet server was doing some name lookup.  So, since
> it's within the LAN, I simply put the host name of client machines into the
> server's /etc/hosts.  To certain circumstances it does solve the problem (or
> is it not?).
> 
> However, there are times when it doesn't.  So I thought it must have been
> partly due to the problem with the link and routing.  If it is so, can
> anyone of you elaborate it?

For a definitive answer, use strace on the tcpd/telnetd process, to
discover what it's actually waiting for.

-- 
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to