Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-04-24
5
Medium Priority
?
360 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 2000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

721 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