Explorar o código

bind9: Allow statistics scraping by bind-exporter

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm hai 1 ano
pai
achega
d8ac36a679
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  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; };
+};