aboutsummaryrefslogtreecommitdiffstats
path: root/main/nsd/config.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-12-01 18:13:44 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-12-01 18:17:12 +0100
commit76c25930120acf72b7e9ff32dd69cf4736075aa2 (patch)
tree9161b2e1c77630615ead6f88de7635788f39257b /main/nsd/config.patch
parenta63cdbe663916777f0e31641823a2fae7ae559f5 (diff)
main/nsd: improve init script
Diffstat (limited to 'main/nsd/config.patch')
-rw-r--r--main/nsd/config.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/nsd/config.patch b/main/nsd/config.patch
new file mode 100644
index 00000000000..52749a50b05
--- /dev/null
+++ b/main/nsd/config.patch
@@ -0,0 +1,28 @@
+--- a/nsd.conf.sample.in
++++ b/nsd.conf.sample.in
+@@ -79,9 +79,6 @@
+ # facility LOG_DAEMON). stderr disappears when daemon goes to bg.
+ # logfile: "@logfile@"
+
+- # File to store pid for nsd in.
+- # pidfile: "@pidfile@"
+-
+ # The file where secondary zone refresh and expire timeouts are kept.
+ # If you delete this file, all secondary zones are forced to be
+ # 'refreshing' (as if nsd got a notify). Set to "" to disable.
+@@ -222,11 +219,14 @@
+ remote-control:
+ # Enable remote control with nsd-control(8) here.
+ # set up the keys and certificates with nsd-control-setup.
+- # control-enable: no
++ # (This needs to be enabled to use init script's commands reload and
++ # reopen)
++ control-enable: yes
+
+ # what interfaces are listened to for control, default is on localhost.
+ # with an absolute path, a unix local named pipe is used for control
+ # (and key and cert files are not needed, use directory permissions).
++ control-interface: /run/nsd/control.sock
+ # control-interface: 127.0.0.1
+ # control-interface: ::1
+