Browse Source

bind9: Allow statistics scraping by bind-exporter

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 year ago
parent
commit
d8ac36a679
2 changed files with 10 additions and 0 deletions
  1. 5 0
      dns-server/named.conf.options
  2. 5 0
      dns-server/named.conf.options.recursor

+ 5 - 0
dns-server/named.conf.options

@@ -40,3 +40,8 @@ options {
 	use-v4-udp-ports { range 1024 65535; };
 	use-v6-udp-ports { range 1024 65535; };
 };
+
+// Allow scraping by bind-exporter
+statistics-channels {
+	inet 127.0.0.1 port 8053 allow { 127.0.0.1; };
+};

+ 5 - 0
dns-server/named.conf.options.recursor

@@ -47,3 +47,8 @@ options {
 	use-v4-udp-ports { range 1024 65535; };
 	use-v6-udp-ports { range 1024 65535; };
 };
+
+// Allow scraping by bind-exporter
+statistics-channels {
+	inet 127.0.0.1 port 8053 allow { 127.0.0.1; };
+};