LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Connection with Long Delay (Telnet, Ftp) (http://www.linuxquestions.org/questions/linux-general-1/connection-with-long-delay-telnet-ftp-12626/)

sarmadys 01-25-2002 01:42 AM

Connection with Long Delay (Telnet, Ftp)
 
Hello

I have installed a Redhat 7.2 on a Pentium166(64M Ram) as my home linux server. (I do php programming on it).

When I want to connect it using telnet it has a delay of about 15-30 seconds before its login page appears.

For ftp it is worse. It needs about 30-60 seconds before login page appears.

I use a 10/100 Compex Rl-2000 with a cross cable.

Regards,
Mac

Mik 01-25-2002 04:11 AM

It's probably doing a dns lookup which could be taking very long. Add the hostnames to /etc/hosts and then make sure you have the hosts section in the file /etc/nsswitch.conf as follows:
hosts: files nisplus nis dns

Well you don't necessarily need all of those just make sure it has the files first so it will look there first and not try to resolve it through dns.

sarmadys 01-25-2002 05:58 AM

Thank you but I use IP addresses.

Mac

Mik 01-25-2002 06:59 AM

Well even if you use IP addresses you might still want to do it. Unless you disabled it, it often does a reverse dns lookup so it can log the domain name instead of the ip address.

linux-who? 08-14-2008 06:01 PM

Quote:

Originally Posted by Mik (Post 51828)
It's probably doing a dns lookup which could be taking very long. Add the hostnames to /etc/hosts and then make sure you have the hosts section in the file /etc/nsswitch.conf as follows:
hosts: files nisplus nis dns

Well you don't necessarily need all of those just make sure it has the files first so it will look there first and not try to resolve it through dns.


I had this same problem and MIK's sollution fixed it for me!
Thanks MIK!

Mr. C. 08-14-2008 09:31 PM

edit: I added no new data here. sorry, drive through.

sarmadys 08-14-2008 09:38 PM

Guys, I asked this question 7 years ago. The world has changed since that time dramatically.

Thanks for reminding me of how the world was in January 2002!!!

Mr. C. 08-14-2008 09:41 PM

Ah! That's pretty funny. I hadn't even noticed the date, and often don't look at the original posting date; apparently linux-who didn't either.

Actually, we just wanted to remind you. :-)

AluminumStudios 02-09-2011 01:55 AM

I just stumbled across this post in a google search and was amused at how after 7 years comments were made and the original posted saw them.

I don't know if anyone will see this, but it has now been 9 years since that post!


All times are GMT -5. The time now is 06:32 AM.