소스 검색

bind9: Allow statistics scraping by bind-exporter

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 년 전
부모
커밋
d8ac36a679
2개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  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; };
+};