General discussion
-
Topic
-
Ho to disable DNS lookups for ftpd?
LockedI’ve been having problems with slow FTP logins – delays of 45 sec. up to 2 minutes, and finally determined that underneath, DNS failures are the culprit. By changing my DNS server to a more reliable one, I’ve eliminated the slow logins for internal users. However, my machine has a ftp connections forwarded to it, and external clients still experience the long delay.
“strace” reveals that once again, DNS is the culprit. The FTPD or some component is trying to resolve the IP address of the client to a name, and failing. If I remove* all DNS servers from the RH Linux 6.2 machine, the delay goes away – but this will certainly cause problems down the road.
What I’d like to do is to get the FPD to not attempt the DNS lookup, so that external FTP clients don’t experience the delay. I’m fine with having my logs populated with IP addresses instead of hostnames.
Anyone know how to do that? I’m very new to Linux/UNIX (Don’t let strace fool you – that tip came from a friend) so detailsare a plus. Alternat