Operating System - HP-UX
1752790 Members
6077 Online
108789 Solutions
New Discussion юеВ

Re: Telnet is connecting slow

 
trilok_pvp
Frequent Advisor

Telnet is connecting slow

Hi

I am HP unix boxes i am unable to connect to Telnet, its takes lot of time to get the login screen. I DNS have the problem, how to fix it temp.
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: Telnet is connecting slow

Which is it, "unable to connect" or "takes
lot of time"?

If the only slow thing is the initial
connection, then it probably is a DNS
problem. A Forum search for, say,
telnet slow
would find many similar threads.

> [...] how to fix it temp.

Why not fix it perm?

You could try adding the Telnet client
system(s) to the DNS data, or /etc/hosts on
the Telnet server system.

You might also wish to adjust
"/etc/nsswitch.conf", depending on what's in
there now.
trilok_pvp
Frequent Advisor

Re: Telnet is connecting slow

Hi it takes lot of time to connect.

and in etc/nsswitch.conf file the following entries asre there

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=return] dns

Avinash20
Honored Contributor

Re: Telnet is connecting slow

Having issue with DNS

Temp fix:

# mv /etc/resolv.conf /etc/resolv.conf.

Check the telnet now
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Asif Sharif
Honored Contributor

Re: Telnet is connecting slow

In your case the telnet session may be waited for DNS timeout before looking up "/etc/hosts" to resolve the requested IP.

Try creating the file "/etc/nsswitch.conf".

Regards,
Asif Sharif
Regards,
Asif Sharif
trilok_pvp
Frequent Advisor

Re: Telnet is connecting slow

Hi,

I tried by moving the file and recreating the resolv.conf file. But still it takes lot of time to get the login screen.

Steven Schweda
Honored Contributor

Re: Telnet is connecting slow

> I tried by moving the file and recreating
> the resolv.conf file. But still it takes
> lot of time to get the login screen.

I think that his idea was to remove
resolv.conf, so that you wouldn't be using
DNS at all. Recreating it would mean that
nothing really changed, so I'd expect no
change in the result.

This might be a good test, but it's not what
I'd choose as a long-term solution, because
completely disabling DNS can stop too many
other things from working.

> You could try adding the Telnet client
> system(s) to the DNS data, or /etc/hosts on
> the Telnet server system.

Still true. (And, apparently, still
untried.)