Parcourir la source

bind9: Allow statistics scraping by bind-exporter

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm il y a 1 an
Parent
commit
d8ac36a679
2 fichiers modifiés avec 10 ajouts et 0 suppressions
  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; };
+};