diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-15 17:55:00 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-15 17:55:00 +0100 |
commit | f95928a0ba0bdd5d66bae0ead8d64d78c73e6057 (patch) | |
tree | 3d80111310f1b07d0757ba0272ab90acc61bc0a9 /hosts/vidhar/dns | |
parent | a800fbfe7360557832ad0196ecf20417faedefab (diff) | |
download | nixos-f95928a0ba0bdd5d66bae0ead8d64d78c73e6057.tar nixos-f95928a0ba0bdd5d66bae0ead8d64d78c73e6057.tar.gz nixos-f95928a0ba0bdd5d66bae0ead8d64d78c73e6057.tar.bz2 nixos-f95928a0ba0bdd5d66bae0ead8d64d78c73e6057.tar.xz nixos-f95928a0ba0bdd5d66bae0ead8d64d78c73e6057.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar/dns')
-rw-r--r-- | hosts/vidhar/dns/default.nix | 13 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/arpa.in-addr.10.141.0.soa | 12 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/arpa.in-addr.10.141.1.soa | 14 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa | 8 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/yggdrasil.lan.soa | 13 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/yggdrasil.mgmt.soa | 15 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/yggdrasil.soa | 5 |
7 files changed, 12 insertions, 68 deletions
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 { | |||
53 | rrset-roundrobin = true; | 53 | rrset-roundrobin = true; |
54 | use-caps-for-id = true; | 54 | use-caps-for-id = true; |
55 | 55 | ||
56 | do-not-query-localhost = false; | ||
56 | local-zone = [ | 57 | local-zone = [ |
57 | "141.10.in-addr.arpa. transparent" | 58 | "141.10.in-addr.arpa. transparent" |
58 | "yggdrasil. transparent" | 59 | "yggdrasil. transparent" |
@@ -100,21 +101,9 @@ in { | |||
100 | - domain: yggdrasil | 101 | - domain: yggdrasil |
101 | template: local_zone | 102 | template: local_zone |
102 | file: ${./zones/yggdrasil.soa} | 103 | file: ${./zones/yggdrasil.soa} |
103 | - domain: lan.yggdrasil | ||
104 | template: local_zone | ||
105 | file: ${./zones/yggdrasil.lan.soa} | ||
106 | - domain: mgmt.yggdrasil | ||
107 | template: local_zone | ||
108 | file: ${./zones/yggdrasil.mgmt.soa} | ||
109 | - domain: 141.10.in-addr.arpa | 104 | - domain: 141.10.in-addr.arpa |
110 | template: local_zone | 105 | template: local_zone |
111 | file: ${./zones/arpa.in-addr.10.141.soa} | 106 | file: ${./zones/arpa.in-addr.10.141.soa} |
112 | - domain: 0.141.10.in-addr.arpa | ||
113 | template: local_zone | ||
114 | file: ${./zones/arpa.in-addr.10.141.0.soa} | ||
115 | - domain: 1.141.10.in-addr.arpa | ||
116 | template: local_zone | ||
117 | file: ${./zones/arpa.in-addr.10.141.1.soa} | ||
118 | ''; | 107 | ''; |
119 | }; | 108 | }; |
120 | 109 | ||
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 @@ | |||
1 | $ORIGIN 0.141.10.in-addr.arpa. | ||
2 | $TTL 300 | ||
3 | @ IN SOA vidhar.lan.yggdrasil. root.yggdrasil.li. ( | ||
4 | 2022031504 ; serial | ||
5 | 300 ; refresh | ||
6 | 300 ; retry | ||
7 | 300 ; expire | ||
8 | 300 ; min TTL | ||
9 | ) | ||
10 | |||
11 | IN NS vidhar.lan.yggdrasil. | ||
12 | 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 @@ | |||
1 | $ORIGIN 1.141.10.in-addr.arpa. | ||
2 | $TTL 300 | ||
3 | @ IN SOA vidhar.mgmt.yggdrasil. root.yggdrasil.li. ( | ||
4 | 2022031505 ; serial | ||
5 | 300 ; refresh | ||
6 | 300 ; retry | ||
7 | 300 ; expire | ||
8 | 300 ; min TTL | ||
9 | ) | ||
10 | |||
11 | IN NS vidhar.mgmt.yggdrasil. | ||
12 | 1 IN PTR vidhar.mgmt.yggdrasil. | ||
13 | 2 IN PTR switch01.mgmt.yggdrasil. | ||
14 | 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 @@ | |||
1 | $ORIGIN 141.10.in-addr.arpa. | 1 | $ORIGIN 141.10.in-addr.arpa. |
2 | $TTL 300 | 2 | $TTL 300 |
3 | @ IN SOA vidhar.lan.yggdrasil. root.yggdrasil.li. ( | 3 | @ IN SOA vidhar.lan.yggdrasil. root.yggdrasil.li. ( |
4 | 2022031505 ; serial | 4 | 2022031506 ; serial |
5 | 300 ; refresh | 5 | 300 ; refresh |
6 | 300 ; retry | 6 | 300 ; retry |
7 | 300 ; expire | 7 | 300 ; expire |
@@ -9,3 +9,9 @@ $TTL 300 | |||
9 | ) | 9 | ) |
10 | 10 | ||
11 | IN NS vidhar.lan.yggdrasil. | 11 | IN NS vidhar.lan.yggdrasil. |
12 | |||
13 | 1.0 IN PTR vidhar.lan.yggdrasil. | ||
14 | |||
15 | 1.1 IN PTR vidhar.mgmt.yggdrasil. | ||
16 | 2.1 IN PTR switch01.mgmt.yggdrasil. | ||
17 | 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 @@ | |||
1 | $ORIGIN lan.yggdrasil. | ||
2 | $TTL 300 | ||
3 | @ IN SOA vidhar.lan.yggdrasil. root.yggdrasil.li. ( | ||
4 | 2022031504 ; serial | ||
5 | 300 ; refresh | ||
6 | 300 ; retry | ||
7 | 300 ; expire | ||
8 | 300 ; min TTL | ||
9 | ) | ||
10 | |||
11 | IN NS vidhar.lan.yggdrasil. | ||
12 | |||
13 | 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 @@ | |||
1 | $ORIGIN mgmt.yggdrasil. | ||
2 | $TTL 300 | ||
3 | @ IN SOA vidhar.mgmt.yggdrasil. root.yggdrasil.li. ( | ||
4 | 2022031505 ; serial | ||
5 | 300 ; refresh | ||
6 | 300 ; retry | ||
7 | 300 ; expire | ||
8 | 300 ; min TTL | ||
9 | ) | ||
10 | |||
11 | IN NS vidhar.mgmt.yggdrasil. | ||
12 | |||
13 | vidhar IN A 10.141.1.1 | ||
14 | switch01 IN A 10.141.1.2 | ||
15 | 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 @@ | |||
1 | $ORIGIN yggdrasil. | 1 | $ORIGIN yggdrasil. |
2 | $TTL 300 | 2 | $TTL 300 |
3 | @ IN SOA vidhar.yggdrasil. root.yggdrasil.li. ( | 3 | @ IN SOA vidhar.yggdrasil. root.yggdrasil.li. ( |
4 | 2022031504 ; serial | 4 | 2022031505 ; serial |
5 | 300 ; refresh | 5 | 300 ; refresh |
6 | 300 ; retry | 6 | 300 ; retry |
7 | 300 ; expire | 7 | 300 ; expire |
@@ -18,4 +18,7 @@ grafana.vidhar IN CNAME vidhar.yggdrasil. | |||
18 | 18 | ||
19 | 19 | ||
20 | vidhar.lan IN A 10.141.0.1 | 20 | vidhar.lan IN A 10.141.0.1 |
21 | |||
21 | vidhar.mgmt IN A 10.141.1.1 | 22 | vidhar.mgmt IN A 10.141.1.1 |
23 | switch01.mgmt IN A 10.141.1.2 | ||
24 | ap01.mgmt IN A 10.141.1.4 | ||