Solved

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

Posted on 2004-04-24
5
353 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
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now