Group :: Sistema/Servidores
RPM: nsd
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: 0001-Enable-control-by-default.patch
Download
Download
diff -ruN nsd-4.3.7.orig/nsd-control-setup.sh.in nsd-4.3.7/nsd-control-setup.sh.in
--- nsd-4.3.7.orig/nsd-control-setup.sh.in 2021-07-22 14:05:51.000000000 +0000
+++ nsd-4.3.7/nsd-control-setup.sh.in 2021-07-23 08:21:33.590863092 +0000
@@ -197,7 +197,7 @@
cleanup
-echo "Setup success. Certificates created. Enable in nsd.conf file to use"
+echo "Setup success. Certificates created."
# create trusted usage pem
diff -ruN nsd-4.3.7.orig/nsd-control.8.in nsd-4.3.7/nsd-control.8.in
--- nsd-4.3.7.orig/nsd-control.8.in 2021-07-22 14:05:51.000000000 +0000
+++ nsd-4.3.7/nsd-control.8.in 2021-07-23 08:20:58.582348715 +0000
@@ -221,8 +221,6 @@
If you change the access control permissions on the key files you can decide
who can use nsd\-control, by default owner and group but not all users.
The script preserves private keys present in the directory.
-After running the script as root, turn on \fBcontrol\-enable\fR in
-\fInsd.conf\fR.
.SH "STATISTIC COUNTERS"
The \fIstats\fR command shows a number of statistic counters.
.TP
diff -ruN nsd-4.3.7.orig/options.c nsd-4.3.7/options.c
--- nsd-4.3.7.orig/options.c 2021-07-22 14:05:51.000000000 +0000
+++ nsd-4.3.7/options.c 2021-07-23 08:21:59.127238304 +0000
@@ -134,7 +134,7 @@
opt->answer_cookie = 1;
opt->cookie_secret = NULL;
opt->cookie_secret_file = CONFIGDIR"/nsd_cookiesecrets.txt";
- opt->control_enable = 0;
+ opt->control_enable = 1;
opt->control_interface = NULL;
opt->control_port = NSD_CONTROL_PORT;
opt->server_key_file = CONFIGDIR"/nsd_server.key";