Selaa lähdekoodia

bind9: Allow statistics scraping by bind-exporter

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 vuosi sitten
vanhempi
commit
d8ac36a679
2 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  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; };
+};