VSFTPD is a Linux system in an FTP software, it can be used to achieve files, data upload and download, but some users will find VSFTPD login is very slow, one stop, then how to solve the problem of vsftpd landing slow card?
1. Modify the/etc/resolv.conf on the server so that its contents are only similar
NameServer 192.81.133.229
NameServer 114.114.114.114
The resolv.conf of the problematic machine always contains addresses such as localhost or 127.0.0.1. That is, when the client connects to the server, the server performs a DNS lookup to confirm the domain name, and waits until the timeout if the DNS is not resolved.
2. Modify VSFTPD configuration file
Vi/etc/vsftpd.conf
Add the following parameters:
Reverse_lookup_enable=no
After saving exit, restart the VSFTPD service
Service VSFTPD Restart
Or
/ETC/INIT.D/VSFTPD restart
3. Verify
Use the FTP customer service side to login, you can feel no waiting
If you have a problem with it, we don't have to
/etc/resolv.conf
NameServer 192.81.133.229
NameServer 114.114.114.114
Change into
NameServer 8.8.8.8
NameServer 8.8.8.8
, which is expected to be a lot faster, with the Google Server DNS we can also use their own server or domain DNS