Telnet : Long time for Login prompt

When I try to telnet to another machine by IP it takes 3-5 minutes
before the login prompt is displayed. What can cause this?

Usually it’s a DNS problem. Check the file /etc/resolv.conf. It
should have lines like the following for a system connected to
the internet or which has access to a “local” DNS service:

domain <your_domain.com>
nameserver 222.111.222.111
lookup file bind

You can have more than one nameserver line. If there are no
accessible nameservers it may be better to remove the file.


Erik Harrington wrote:

When I try to telnet to another machine by IP it takes 3-5 minutes
before the login prompt is displayed. What can cause this?

Richard R. Kramer <rrkramer@kramer-smilko.com> wrote:

Usually it’s a DNS problem. Check the file /etc/resolv.conf. It
should have lines like the following for a system connected to
the internet or which has access to a “local” DNS service:

domain <your_domain.com
nameserver 222.111.222.111
lookup file bind

You can have more than one nameserver line. If there are no
accessible nameservers it may be better to remove the file.

As well you can try putting the client machine’s ip address into
the /etc/hosts file. ftpd and telnetd will do a reverse name lookup
which on an internal network without its own DNS will obviously
fail and you will have to wait for the timeout.

Tom


Thomas Emberson <Thomas@QNX.com>