How to disable SSH reverse DNS lookup on Linux?

How to disable the reverse DNS lookup by the SSD server on Linux?

To turn off reverse DNS lookups of the SSH daemon, log on the server and add

UseDNS no

to /etc/ssh/sshd_config.

And remember to restart the sshd service by service sshd restart or systemctl restart sshd.service or other commands depending on your system.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *