Re: How to turn DNS off in sshd_config?

From: David Malone (dwmalone_at_maths.tcd.ie)
Date: 10/07/05


Date: 7 Oct 2005 09:31:00 +0100


"OttawaTrade" <speediercoREMOVE_THIS@yahoo.com> writes:

>My server's DNS is very unstable, so many times, I can not ssh in, because
>it keeps doing reverse DNS on the IP which sshs from.

>Is there a way to turn it off?

I suspect it is tricky to completly turn off because you will have
to stop sshd, libwrap and any pam modules from doing DNS lookups.
I've found that is is easier to increase "LoginGraceTime" to be
greater than the default DNS timeouts. Try adding "LoginGraceTime
180" to your sshd_config and then HUPing sshd.

        David.