LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2008, 05:45 AM   #1
ratcateme
Member
 
Registered: Feb 2008
Distribution: CentOS 5.4
Posts: 59

Rep: Reputation: 15
ProFTPd takes 10seconds to login


I am running a ProFTPd server on CentOS 5.1
when i connect to it from my laptop (on wifi) it takes 10 seconds when i edit a file or connect for the first time. i did tcpdump on my server and i found it does a DNS request for 10.1.1.10.in-addr.arpa (my laptop's ip is 10.1.1.10) and gets no reply back after like .1 of a second but then wont talk to it for 10 seconds.
i have a desktop that is connected to a small home router (with a siwtch/wifi) that is also connected to the server and it connects and works fine with no 10 second lags when i tcpdumped that transfer i found it still does the DNS check for 3.1.1.10.in-addr.arpa (the ip of my desktop is 10.1.1.3) but as soon as it gets the return of "no such name" it starts to talk to my desktop.
what is going on here both are using the same application.

thanks Scott.
 
Old 09-04-2008, 08:25 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I guess that in the 1st case it waits until the lookup request timeouts and in the 2nd it gets a response from the router.
You can use
Code:
UseReverseDNS off
to prevent proftd from doing reverse lookups.
 
Old 09-04-2008, 03:28 PM   #3
ratcateme
Member
 
Registered: Feb 2008
Distribution: CentOS 5.4
Posts: 59

Original Poster
Rep: Reputation: 15
thanks for the help.
i used that and it has stopped the DNS lookup but it still takes 10 seconds to reply to my laptop.
i have tested other services like SSH and POP3 both work fine with a instant response when i connect.
can anyone shed some light on this i have looked on Google but found nothing.

Scott.
 
Old 09-07-2008, 12:52 AM   #4
ratcateme
Member
 
Registered: Feb 2008
Distribution: CentOS 5.4
Posts: 59

Original Poster
Rep: Reputation: 15
added
Code:
IdentLookups  off
now it works

Scott.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Login takes a very long time Jensens Linux - Networking 2 03-23-2006 03:24 AM
ssh login takes several minutes exodist *BSD 10 05-26-2005 03:17 PM
Connecting to local ProFTPD takes a long time Dee-ehn Linux - Networking 3 12-07-2004 12:58 AM
'Whatever' login takes ages... Worstje Slackware 7 10-15-2004 03:06 PM
X login is slow, takes 2 minutes jhcatch22 Linux - Newbie 3 07-08-2004 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration