From f95928a0ba0bdd5d66bae0ead8d64d78c73e6057 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 15 Mar 2022 17:55:00 +0100 Subject: vidhar: ... --- hosts/vidhar/dns/default.nix | 13 +------------ hosts/vidhar/dns/zones/arpa.in-addr.10.141.0.soa | 12 ------------ hosts/vidhar/dns/zones/arpa.in-addr.10.141.1.soa | 14 -------------- hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa | 8 +++++++- hosts/vidhar/dns/zones/yggdrasil.lan.soa | 13 ------------- hosts/vidhar/dns/zones/yggdrasil.mgmt.soa | 15 --------------- hosts/vidhar/dns/zones/yggdrasil.soa | 5 ++++- 7 files changed, 12 insertions(+), 68 deletions(-) delete mode 100644 hosts/vidhar/dns/zones/arpa.in-addr.10.141.0.soa delete mode 100644 hosts/vidhar/dns/zones/arpa.in-addr.10.141.1.soa delete mode 100644 hosts/vidhar/dns/zones/yggdrasil.lan.soa delete mode 100644 hosts/vidhar/dns/zones/yggdrasil.mgmt.soa (limited to 'hosts/vidhar/dns') diff --git a/hosts/vidhar/dns/default.nix b/hosts/vidhar/dns/default.nix index b9c6433f..b1457a7a 100644 --- a/hosts/vidhar/dns/default.nix +++ b/hosts/vidhar/dns/default.nix @@ -53,6 +53,7 @@ in { rrset-roundrobin = true; use-caps-for-id = true; + do-not-query-localhost = false; local-zone = [ "141.10.in-addr.arpa. transparent" "yggdrasil. transparent" @@ -100,21 +101,9 @@ in { - domain: yggdrasil template: local_zone file: ${./zones/yggdrasil.soa} - - domain: lan.yggdrasil - template: local_zone - file: ${./zones/yggdrasil.lan.soa} - - domain: mgmt.yggdrasil - template: local_zone - file: ${./zones/yggdrasil.mgmt.soa} - domain: 141.10.in-addr.arpa template: local_zone file: ${./zones/arpa.in-addr.10.141.soa} - - domain: 0.141.10.in-addr.arpa - template: local_zone - file: ${./zones/arpa.in-addr.10.141.0.soa} - - domain: 1.141.10.in-addr.arpa - template: local_zone - file: ${./zones/arpa.in-addr.10.141.1.soa} ''; }; diff --git a/hosts/vidhar/dns/zones/arpa.in-addr.10.141.0.soa b/hosts/vidhar/dns/zones/arpa.in-addr.10.141.0.soa deleted file mode 100644 index 75e6b3a8..00000000 --- a/hosts/vidhar/dns/zones/arpa.in-addr.10.141.0.soa +++ /dev/null @@ -1,12 +0,0 @@ -$ORIGIN 0.141.10.in-addr.arpa. -$TTL 300 -@ IN SOA vidhar.lan.yggdrasil. root.yggdrasil.li. ( - 2022031504 ; serial - 300 ; refresh - 300 ; retry - 300 ; expire - 300 ; min TTL -) - - IN NS vidhar.lan.yggdrasil. -1 IN PTR vidhar.lan.yggdrasil. diff --git a/hosts/vidhar/dns/zones/arpa.in-addr.10.141.1.soa b/hosts/vidhar/dns/zones/arpa.in-addr.10.141.1.soa deleted file mode 100644 index 2d535d56..00000000 --- a/hosts/vidhar/dns/zones/arpa.in-addr.10.141.1.soa +++ /dev/null @@ -1,14 +0,0 @@ -$ORIGIN 1.141.10.in-addr.arpa. -$TTL 300 -@ IN SOA vidhar.mgmt.yggdrasil. root.yggdrasil.li. ( - 2022031505 ; serial - 300 ; refresh - 300 ; retry - 300 ; expire - 300 ; min TTL -) - - IN NS vidhar.mgmt.yggdrasil. -1 IN PTR vidhar.mgmt.yggdrasil. -2 IN PTR switch01.mgmt.yggdrasil. -4 IN PTR ap01.mgmt.yggdrasil. diff --git a/hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa b/hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa index ea5a35f3..9dcb50dc 100644 --- a/hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa +++ b/hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa @@ -1,7 +1,7 @@ $ORIGIN 141.10.in-addr.arpa. $TTL 300 @ IN SOA vidhar.lan.yggdrasil. root.yggdrasil.li. ( - 2022031505 ; serial + 2022031506 ; serial 300 ; refresh 300 ; retry 300 ; expire @@ -9,3 +9,9 @@ $TTL 300 ) IN NS vidhar.lan.yggdrasil. + +1.0 IN PTR vidhar.lan.yggdrasil. + +1.1 IN PTR vidhar.mgmt.yggdrasil. +2.1 IN PTR switch01.mgmt.yggdrasil. +4.1 IN PTR ap01.mgmt.yggdrasil. diff --git a/hosts/vidhar/dns/zones/yggdrasil.lan.soa b/hosts/vidhar/dns/zones/yggdrasil.lan.soa deleted file mode 100644 index c58b9a13..00000000 --- a/hosts/vidhar/dns/zones/yggdrasil.lan.soa +++ /dev/null @@ -1,13 +0,0 @@ -$ORIGIN lan.yggdrasil. -$TTL 300 -@ IN SOA vidhar.lan.yggdrasil. root.yggdrasil.li. ( - 2022031504 ; serial - 300 ; refresh - 300 ; retry - 300 ; expire - 300 ; min TTL -) - - IN NS vidhar.lan.yggdrasil. - -vidhar IN A 10.141.0.1 diff --git a/hosts/vidhar/dns/zones/yggdrasil.mgmt.soa b/hosts/vidhar/dns/zones/yggdrasil.mgmt.soa deleted file mode 100644 index 8a630a9a..00000000 --- a/hosts/vidhar/dns/zones/yggdrasil.mgmt.soa +++ /dev/null @@ -1,15 +0,0 @@ -$ORIGIN mgmt.yggdrasil. -$TTL 300 -@ IN SOA vidhar.mgmt.yggdrasil. root.yggdrasil.li. ( - 2022031505 ; serial - 300 ; refresh - 300 ; retry - 300 ; expire - 300 ; min TTL -) - - IN NS vidhar.mgmt.yggdrasil. - -vidhar IN A 10.141.1.1 -switch01 IN A 10.141.1.2 -ap01 IN A 10.141.1.4 diff --git a/hosts/vidhar/dns/zones/yggdrasil.soa b/hosts/vidhar/dns/zones/yggdrasil.soa index 6e66a063..c56e80e0 100644 --- a/hosts/vidhar/dns/zones/yggdrasil.soa +++ b/hosts/vidhar/dns/zones/yggdrasil.soa @@ -1,7 +1,7 @@ $ORIGIN yggdrasil. $TTL 300 @ IN SOA vidhar.yggdrasil. root.yggdrasil.li. ( - 2022031504 ; serial + 2022031505 ; serial 300 ; refresh 300 ; retry 300 ; expire @@ -18,4 +18,7 @@ grafana.vidhar IN CNAME vidhar.yggdrasil. vidhar.lan IN A 10.141.0.1 + vidhar.mgmt IN A 10.141.1.1 +switch01.mgmt IN A 10.141.1.2 +ap01.mgmt IN A 10.141.1.4 -- cgit v1.2.3