LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ProFTPd takes 10seconds to login (https://www.linuxquestions.org/questions/linux-software-2/proftpd-takes-10seconds-to-login-667510/)

ratcateme 09-04-2008 05:45 AM

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.

bathory 09-04-2008 08:25 AM

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.

ratcateme 09-04-2008 03:28 PM

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.

ratcateme 09-07-2008 12:52 AM

added
Code:

IdentLookups  off
now it works

Scott.


All times are GMT -5. The time now is 04:12 PM.