Solved

ftpd on Linux Red Hat 7.3 takes too much to show the login

Posted on 2004-04-24
5
358 Views
Last Modified: 2013-12-06
Hi

I'm new on Linux and I found out how to start the ftp daemon and it works fine except for one thing: it takes a lot to show the login. All the FTP clients reports that the connection is done very fast but it waits a lot for the login. Why is this happeninig and how I can resolve it? I've used HP-UX and other Unix and the login is very fast even through Internet, this machine is in a LAN of 2 PCs.

Thank you
0
Comment
Question by:mak730
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 10908048
That sounds a DNS lookup problem. When the FTP daemon accepts a connection from a clinet it will try to find out what the hostname of the remote client is by looking up the client's IP in the DNS. In your case it sounds like there's no DNS server that will respond with your client's IP and the request has to time out. You can avoid that problem by creating a hosts file record on the Linux box, someting like:

192.168.0.2       my-client.mydomain.net my-client
0
 

Author Comment

by:mak730
ID: 10908090
ok, that sounds real good. Can you tell me where I must to create that file?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10908165
The file (/etc/hosts) will already exist. Simply open it with a text editor and and the line.
0
 

Author Comment

by:mak730
ID: 10908288
I did it but it is still the same it takes a lot to show the login, here it is the contents of hosts file:

[mak@linux etc]$ more hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.162   makhome makhome
127.0.0.1       linux   linux
192.168.1.222   linux   linux

makhome is the machine (WinXP) i'am trying to connect from. linux is the host PC.
0
 

Author Comment

by:mak730
ID: 10908975
The problem seem to be that I need to restart the Linux PC. After modify the hosts file and restart Linux the problem was solved.
Thanks.
0

Featured Post

Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question