kentpeacock / rpms / openssh

Forked from rpms/openssh 2 years ago
Clone
b7cc2d
Revert 3cd5103c1e1aaa59bd66f7f52f6ebbcd5deb12f9
b7cc2d
b7cc2d
diff --git a/servconf.c b/servconf.c
b7cc2d
index 475076bf2..318546290 100644
b7cc2d
--- a/servconf.c
b7cc2d
+++ b/servconf.c
b7cc2d
@@ -308,7 +308,7 @@ fill_default_server_options(ServerOptions *options)
b7cc2d
 	if (options->max_sessions == -1)
b7cc2d
 		options->max_sessions = DEFAULT_SESSIONS_MAX;
b7cc2d
 	if (options->use_dns == -1)
b7cc2d
-		options->use_dns = 0;
b7cc2d
+		options->use_dns = 1;
b7cc2d
 	if (options->client_alive_interval == -1)
b7cc2d
 		options->client_alive_interval = 0;
b7cc2d
 	if (options->client_alive_count_max == -1)
b7cc2d
diff --git a/sshd_config b/sshd_config
b7cc2d
index e9045bc4d..c9042ac3c 100644
b7cc2d
--- a/sshd_config
b7cc2d
+++ b/sshd_config
b7cc2d
@@ -112,7 +112,7 @@ UsePrivilegeSeparation sandbox		# Default for new installations.
b7cc2d
 #ClientAliveInterval 0
b7cc2d
 #ClientAliveCountMax 3
b7cc2d
 #ShowPatchLevel no
b7cc2d
-#UseDNS no
b7cc2d
+#UseDNS yes
b7cc2d
 #PidFile /var/run/sshd.pid
b7cc2d
 #MaxStartups 10:30:100
b7cc2d
 #PermitTunnel no
b7cc2d
diff --git a/sshd_config.5 b/sshd_config.5
b7cc2d
index 4fd93d68e..cf57c609f 100644
b7cc2d
--- a/sshd_config.5
b7cc2d
+++ b/sshd_config.5
b7cc2d
@@ -1379,10 +1379,12 @@ should look up the remote host name and check that
b7cc2d
 should look up the remote host name, and to check that
b7cc2d
 the resolved host name for the remote IP address maps back to the
b7cc2d
 very same IP address.
b7cc2d
+The default is
b7cc2d
+.Dq yes .
b7cc2d
 .Pp
b7cc2d
 If this option is set to
b7cc2d
 .Cm no
b7cc2d
-(the default) then only addresses and not host names may be used in
b7cc2d
+then only addresses and not host names may be used in
b7cc2d
 .Pa ~/.ssh/authorized_keys
b7cc2d
 .Cm from
b7cc2d
 and