Slow login to RetHat 6.2 on a LAN

I have two RedHat 6.2 Linux machines on a local network (IPs in the 192.168.0.* range).
I'm having trouble in connecting to either machine: Whenever initializing connection (from another computer on the local network) either by FTP or telnet, it takes several minutes until I get response (e,g, login prompt). Once I login however the connection is fast and flawless.
It is ridiculous because I have similar machines hosted outside and it is faster logging to them by modem than logging to the internal machines on the LAN!

What can be the problem? Ask me if you need further info.
BooksAsked:
Who is Participating?
 
svindlerConnect With a Mentor Commented:
I seem to remember a problem with wu-ftpd. As far as I remember, there is a flag to disable name lookups, but it doesn't disable it and ignores "hosts" in /etc/host.conf, but always does a "bind" name lookup.
After many attempts, I threw the towel and installed proftpd instead, which have better features anyway, so it was not a big loss.
0
 
MFCRichCommented:
This sounds like a DNS problem. I am guessing that when you are connected by modem you are using your ISPs DNS service which of course does not have entries for your 192.168.0.* machines.

Edit the '/etc/hosts' file on all the 192.168.0.* machines to look like this:

127.0.0.1   localhost.localdomain localhost
192.168.0.1 host1
192.168.0.2 host2
...etc

host1 and host2 are the names you've given to the machines. You could make this file on one machine and then copy it to all the others since it should be identical on all machines.

And the make sure '/etc/host.conf' has "order hosts,bind" at the beggining.

Post any questions
0
 
escheiderCommented:
Bingo, I agree with MFC.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
BooksAuthor Commented:
Ok, the situation is now like this:

The linux server named "Serv1" on IP 192.168.0.23 has this hosts file:
127.0.0.1       localhost       localhost.localdomain
192.168.0.23    Serv1

(host.conf is configured as you mentioned)

The windows machine from which i'm tring to telnet (using TeraTerm) has this hosts file:
127.0.0.1     localhost
192.168.0.23     Serv1

Still initializing a connection is very slow.

Maybe I need to defined a name for the windows machine and
put that name in Serv1 hosts file?
0
 
John_Bell_2Commented:
Setting up DNS with properly configured forward and reverse zone information may help...
0
 
tiboriCommented:
Have you tried connecting via IP rather than name? Is this just as slow?
0
 
svindlerCommented:
Putting the ip address of the client in /etc/hosts of the server will solve the problem.

The delay is caused by the server doing a reverse lookup of the ip number of the client before continuing.

This is the same information other has provided, I am just trying to clarity things.
0
 
BooksAuthor Commented:
I have put the ip address of the client in the /etc/hosts of the server. And indeed connecting by telnet is fast.

However ftp is still slow as ever.

Is there something special that needs to be done for the ftp? ftp daemon is wu-ftp.

 
0
 
BooksAuthor Commented:
svindler claims his/her answer only repeated what other have said. But his/her answer was the best - in plain language - only after reading it I knew exactly what to do.

Thanks.
0
All Courses

From novice to tech pro — start learning today.