From b4d845279de758401570bfcb4a1dc8a45286cece Mon Sep 17 00:00:00 2001 From: Jakub Rohovsky Date: Fri, 2 Mar 2018 13:37:41 +0100 Subject: [PATCH] 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 --- src/templates/named.conf | 1 + src/templates/named.conf.options | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/templates/named.conf b/src/templates/named.conf index ed6a167..f9f66d5 100644 --- a/src/templates/named.conf +++ b/src/templates/named.conf @@ -11,5 +11,6 @@ include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; controls { + inet 127.0.0.1 allow {localhost;}; inet {{ dns_backend.control_listen_ip }} allow { {{ dns_backend.control_ips }}; }; }; diff --git a/src/templates/named.conf.options b/src/templates/named.conf.options index 8657e07..e79167c 100644 --- a/src/templates/named.conf.options +++ b/src/templates/named.conf.options @@ -26,5 +26,7 @@ options { allow-new-zones yes; request-ixfr no; recursion no; + statistics-file "/var/cache/bind/named.stats"; + zone-statistics yes; allow-notify { {{ dns_backend.control_ips }}; }; };