Disabling SSH reverse DNS lookup

When reverse DNS is not available, the sshd reverse lookup is an annoyance. It can be disable it in /etc/ssh/sshd_config with the following option:

UseDNS no

yay.

No related posts.

Leave a comment

3 Comments.

  1. A few years ago I was having a problem where my ssh connection would stall on connect for up to a minute. Figured out it was this, but instead of setting the UseDNS flag (didn’t have full server access) I just called my ISP and they added a reverse DNS entry for me. Yay!

  2. Also setting name server to 127.0.0.1 is about the same thing, it helps also for other applications that like to do reverse lookups and hang for timeout.

  3. we are our own isp. but sometimes in a private range we dont’ bother to add a reverse dns for everything,.. apparantly.

Leave a Reply


[ Ctrl + Enter ]