vishalmishra434 / rpms / openssh

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