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
Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu not booting - How get past GRUB? 3 57
Which is more secure: EAP or machine certificate for IKEv2 VPN? 1 133
centos linux 65 155
CentOS 7 Linux for HP DL380 G4 32Bits 7 46
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Fine Tune your automatic Updates for Ubuntu / Debian
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.

839 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