From 9124f51c6dfaad458fda020ca88669178bee848f Mon Sep 17 00:00:00 2001 From: Kameron Kenny Date: Tue, 25 Feb 2025 12:34:57 -0500 Subject: [PATCH] add dnsdist and loki dns --- docker-compose.yml | 4 ++-- primary/var/lib/bind/db.10.200 | 6 +++--- primary/var/lib/bind/db.10.99 | 3 ++- primary/var/lib/bind/db.in.thelinuxpro.net | 7 ++++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9f10cb6..55b3447 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: container_name: ns1 build: dockerfile: Dockerfile.primary - image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:250112.0.1 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:250225.0.1 restart: always user: root environment: @@ -41,7 +41,7 @@ services: container_name: ns2 build: dockerfile: Dockerfile.secondary - image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:250102.0.1 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:250225.0.1 restart: always user: root environment: diff --git a/primary/var/lib/bind/db.10.200 b/primary/var/lib/bind/db.10.200 index 8c5e615..8dafbac 100755 --- a/primary/var/lib/bind/db.10.200 +++ b/primary/var/lib/bind/db.10.200 @@ -1,6 +1,6 @@ $TTL 3600 @ IN SOA in.thelinuxpro.net. hostmaster.in.thelinuxpro.net. ( - 24102001 ; serial + 25022501 ; serial 21600 ; refresh after 6 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week @@ -19,8 +19,8 @@ $TTL 3600 248.53 IN PTR 10-200-53-248.in.thelinuxpro.net. 249.53 IN PTR 10-200-53-249.in.thelinuxpro.net. 250.53 IN PTR pihole.in.thelinuxpro.net. -251.53 IN PTR 1.ntp.in.thelinuxpro.net. -252.53 IN PTR 2.ntp.in.thelinuxpro.net. +251.53 IN PTR dnsdist1.in.thelinuxpro.net. +252.53 IN PTR dnsdist2.in.thelinuxpro.net. 253.53 IN PTR 10-200-53-253.in.thelinuxpro.net. 254.53 IN PTR gw53.in.thelinuxpro.net. ;;; 10.200.99 diff --git a/primary/var/lib/bind/db.10.99 b/primary/var/lib/bind/db.10.99 index 39beee8..14f98a4 100755 --- a/primary/var/lib/bind/db.10.99 +++ b/primary/var/lib/bind/db.10.99 @@ -1,6 +1,6 @@ $TTL 3600 @ IN SOA in.thelinuxpro.net. hostmaster.in.thelinuxpro.net. ( - 25011201 ; serial + 25022501 ; serial 21600 ; refresh after 6 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week @@ -25,6 +25,7 @@ $TTL 3600 35.23 IN PTR blackbox-exporter.in.thelinuxpro.net. 36.23 IN PTR nagios.in.thelinuxpro.net. 37.23 IN PTR nagios-db.in.thelinuxpro.net. +38.23 IN PTR loki.in.thelinuxpro.net. 41.23 IN PTR influxdb.in.thelinuxpro.net. 42.23 IN PTR telegraf.in.thelinuxpro.net. 43.23 IN PTR telegraf-syslog.in.thelinuxpro.net. diff --git a/primary/var/lib/bind/db.in.thelinuxpro.net b/primary/var/lib/bind/db.in.thelinuxpro.net index 5f9da0e..3eb736f 100755 --- a/primary/var/lib/bind/db.in.thelinuxpro.net +++ b/primary/var/lib/bind/db.in.thelinuxpro.net @@ -1,6 +1,6 @@ $TTL 2m @ IN SOA in.thelinuxpro.net. root.in.thelinuxpro.net. ( - 25011201 ; serial, todays date + todays serial # + 25022501 ; serial, todays date + todays serial # 1h ; refresh, seconds 15m ; retry, seconds 10D ; expire, seconds @@ -34,6 +34,7 @@ pihole-exporter IN A 10.99.23.34 blackbox-exporter IN A 10.99.23.35 nagios IN A 10.99.23.36 nagios-db IN A 10.99.23.37 +loki IN A 10.99.23.38 influxdb IN A 10.99.23.41 telegraf IN A 10.99.23.42 telegraf-syslog IN A 10.99.23.43 @@ -48,8 +49,8 @@ random IN A 10.99.23.100 sensors IN A 10.99.23.111 ; pihole IN A 10.200.53.250 -1.ntp IN A 10.200.53.251 -2.ntp IN A 10.200.53.252 +dnsdist1 IN A 10.200.53.251 +dnsdist2 IN A 10.200.53.252 ; dns01 IN A 10.200.53.241 dns02 IN A 10.200.53.242