Browse Source

Add designate-bind monitoring capability

This patch modifies Bind to listen also on localhost for rndc commands
so that monitoring agents can poll for status, and configuring Bind
to post statistical data in named.stats file.

	modified:   src/templates/named.conf
	modified:   src/templates/named.conf.options

Closes-Bug: #1752611
Change-Id: I219d29bfccb4565b8732882ee62aec9b847b3070
changes/05/549205/2
Jakub Rohovsky 1 year ago
parent
commit
b4d845279d
2 changed files with 3 additions and 0 deletions
  1. 1
    0
      src/templates/named.conf
  2. 2
    0
      src/templates/named.conf.options

+ 1
- 0
src/templates/named.conf View File

@@ -11,5 +11,6 @@ include "/etc/bind/named.conf.local";
11 11
 include "/etc/bind/named.conf.default-zones";
12 12
 
13 13
 controls {
14
+  inet 127.0.0.1 allow {localhost;};
14 15
   inet {{ dns_backend.control_listen_ip }} allow { {{ dns_backend.control_ips }}; };
15 16
 };

+ 2
- 0
src/templates/named.conf.options View File

@@ -26,5 +26,7 @@ options {
26 26
         allow-new-zones yes;
27 27
         request-ixfr no;
28 28
         recursion no;
29
+        statistics-file "/var/cache/bind/named.stats";
30
+        zone-statistics yes;
29 31
         allow-notify { {{ dns_backend.control_ips }}; };
30 32
 };

Loading…
Cancel
Save