diff options
Diffstat (limited to 'hosts/vidhar/dns')
-rw-r--r-- | hosts/vidhar/dns/default.nix | 6 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa | 7 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/arpa.ip6.2.a.0.3.4.0.0.0.0.0.5.2.0.a.d.a.0.0.0.1.soa | 4 | ||||
-rw-r--r-- | hosts/vidhar/dns/zones/yggdrasil.soa | 8 |
4 files changed, 19 insertions, 6 deletions
diff --git a/hosts/vidhar/dns/default.nix b/hosts/vidhar/dns/default.nix index ade884e7..f942b3f9 100644 --- a/hosts/vidhar/dns/default.nix +++ b/hosts/vidhar/dns/default.nix | |||
@@ -20,7 +20,7 @@ in { | |||
20 | enableRootTrustAnchor = false; | 20 | enableRootTrustAnchor = false; |
21 | settings = { | 21 | settings = { |
22 | server = { | 22 | server = { |
23 | interface = ["lo" "lan"]; | 23 | interface = ["lo" "lan" "ve-printing"]; |
24 | prefer-ip6 = true; | 24 | prefer-ip6 = true; |
25 | access-control = ["0.0.0.0/0 allow" "::/0 allow"]; | 25 | access-control = ["0.0.0.0/0 allow" "::/0 allow"]; |
26 | root-hints = "${pkgs.dns-root-data}/root.hints"; | 26 | root-hints = "${pkgs.dns-root-data}/root.hints"; |
@@ -79,6 +79,10 @@ in { | |||
79 | }; | 79 | }; |
80 | }; | 80 | }; |
81 | 81 | ||
82 | systemd.services.unbound = { | ||
83 | after = [ "container@printinp.service" ]; | ||
84 | }; | ||
85 | |||
82 | systemd.services.knot = { | 86 | systemd.services.knot = { |
83 | unitConfig.RequiresMountsFor = [ "/var/lib/knot" ]; | 87 | unitConfig.RequiresMountsFor = [ "/var/lib/knot" ]; |
84 | serviceConfig.LoadCredential = map ({name, ...}: "${name}.yaml:${config.sops.secrets.${name}.path}") knotKeys; | 88 | serviceConfig.LoadCredential = map ({name, ...}: "${name}.yaml:${config.sops.secrets.${name}.path}") knotKeys; |
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 01941df6..5f98034e 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. hostmaster.yggdrasil.li ( | 3 | @ IN SOA vidhar.lan.yggdrasil. hostmaster.yggdrasil.li ( |
4 | 2023022700 ; serial | 4 | 2023030402 ; serial |
5 | 300 ; refresh | 5 | 300 ; refresh |
6 | 300 ; retry | 6 | 300 ; retry |
7 | 300 ; expire | 7 | 300 ; expire |
@@ -11,8 +11,11 @@ $TTL 300 | |||
11 | IN NS vidhar.lan.yggdrasil. | 11 | IN NS vidhar.lan.yggdrasil. |
12 | 12 | ||
13 | 1.0 IN PTR vidhar.lan.yggdrasil. | 13 | 1.0 IN PTR vidhar.lan.yggdrasil. |
14 | 2.0 IN PTR printer.lan.yggdrasil. | ||
15 | 14 | ||
16 | 1.1 IN PTR vidhar.mgmt.yggdrasil. | 15 | 1.1 IN PTR vidhar.mgmt.yggdrasil. |
17 | 2.1 IN PTR switch01.mgmt.yggdrasil. | 16 | 2.1 IN PTR switch01.mgmt.yggdrasil. |
18 | 4.1 IN PTR ap01.mgmt.yggdrasil. | 17 | 4.1 IN PTR ap01.mgmt.yggdrasil. |
18 | |||
19 | 3.2 IN PTR printer.printer.yggdrasil. | ||
20 | |||
21 | 1.4 IN PTR printing.vidhar.lan.yggdrasil. | ||
diff --git a/hosts/vidhar/dns/zones/arpa.ip6.2.a.0.3.4.0.0.0.0.0.5.2.0.a.d.a.0.0.0.1.soa b/hosts/vidhar/dns/zones/arpa.ip6.2.a.0.3.4.0.0.0.0.0.5.2.0.a.d.a.0.0.0.1.soa index c1955ec7..bec3fd05 100644 --- a/hosts/vidhar/dns/zones/arpa.ip6.2.a.0.3.4.0.0.0.0.0.5.2.0.a.d.a.0.0.0.1.soa +++ b/hosts/vidhar/dns/zones/arpa.ip6.2.a.0.3.4.0.0.0.0.0.5.2.0.a.d.a.0.0.0.1.soa | |||
@@ -1,7 +1,7 @@ | |||
1 | $ORIGIN 1.0.0.0.a.d.a.0.2.5.0.0.0.0.0.4.3.0.a.2.ip6.arpa. | 1 | $ORIGIN 1.0.0.0.a.d.a.0.2.5.0.0.0.0.0.4.3.0.a.2.ip6.arpa. |
2 | $TTL 300 | 2 | $TTL 300 |
3 | @ IN SOA vidhar.lan.yggdrasil. hostmaster.yggdrasil.li ( | 3 | @ IN SOA vidhar.lan.yggdrasil. hostmaster.yggdrasil.li ( |
4 | 2022031801 ; serial | 4 | 2023030400 ; serial |
5 | 300 ; refresh | 5 | 300 ; refresh |
6 | 300 ; retry | 6 | 300 ; retry |
7 | 300 ; expire | 7 | 300 ; expire |
@@ -13,3 +13,5 @@ $TTL 300 | |||
13 | 0.0.0.0.0.0.0.0.0.0.0.0 IN PTR surtr.yggdrasil. | 13 | 0.0.0.0.0.0.0.0.0.0.0.0 IN PTR surtr.yggdrasil. |
14 | 0.0.0.0.0.0.0.0.0.0.0.1 IN PTR vidhar.yggdrasil. | 14 | 0.0.0.0.0.0.0.0.0.0.0.1 IN PTR vidhar.yggdrasil. |
15 | 0.0.0.0.0.0.0.0.0.0.0.2 IN PTR sif.yggdrasil. | 15 | 0.0.0.0.0.0.0.0.0.0.0.2 IN PTR sif.yggdrasil. |
16 | |||
17 | 0.0.0.0.0.4.0.0.0.0.0.1 IN PTR printing.vidhar.yggdrasil. | ||
diff --git a/hosts/vidhar/dns/zones/yggdrasil.soa b/hosts/vidhar/dns/zones/yggdrasil.soa index 49617c80..3d0daaac 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. hostmaster.yggdrasil.li ( | 3 | @ IN SOA vidhar.yggdrasil. hostmaster.yggdrasil.li ( |
4 | 2023022700 ; serial | 4 | 2023030405 ; serial |
5 | 300 ; refresh | 5 | 300 ; refresh |
6 | 300 ; retry | 6 | 300 ; retry |
7 | 300 ; expire | 7 | 300 ; expire |
@@ -23,9 +23,13 @@ pgbackrest.surtr IN CNAME surtr.yggdrasil. | |||
23 | 23 | ||
24 | 24 | ||
25 | vidhar.lan IN A 10.141.0.1 | 25 | vidhar.lan IN A 10.141.0.1 |
26 | printer.lan IN A 10.141.0.2 | ||
27 | 26 | ||
28 | vidhar.mgmt IN A 10.141.1.1 | 27 | vidhar.mgmt IN A 10.141.1.1 |
29 | switch01.mgmt IN A 10.141.1.2 | 28 | switch01.mgmt IN A 10.141.1.2 |
30 | dsl01.mgmt IN A 10.141.1.3 | 29 | dsl01.mgmt IN A 10.141.1.3 |
31 | ap01.mgmt IN A 10.141.1.4 | 30 | ap01.mgmt IN A 10.141.1.4 |
31 | |||
32 | printer.printer IN A 10.141.3.2 | ||
33 | |||
34 | printing.vidhar.lan IN A 10.141.4.1 | ||
35 | printing.vidhar IN AAAA 2a03:4000:52:ada:4::1 | ||