From 29480b6e86ca6057d4151accdb5d4103f1657596 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 4 Mar 2023 19:23:36 +0100 Subject: ... --- hosts/vidhar/dns/default.nix | 6 +++++- hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa | 7 +++++-- .../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 +++- hosts/vidhar/dns/zones/yggdrasil.soa | 8 ++++++-- 4 files changed, 19 insertions(+), 6 deletions(-) (limited to 'hosts/vidhar/dns') 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 { enableRootTrustAnchor = false; settings = { server = { - interface = ["lo" "lan"]; + interface = ["lo" "lan" "ve-printing"]; prefer-ip6 = true; access-control = ["0.0.0.0/0 allow" "::/0 allow"]; root-hints = "${pkgs.dns-root-data}/root.hints"; @@ -79,6 +79,10 @@ in { }; }; + systemd.services.unbound = { + after = [ "container@printinp.service" ]; + }; + systemd.services.knot = { unitConfig.RequiresMountsFor = [ "/var/lib/knot" ]; 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 @@ $ORIGIN 141.10.in-addr.arpa. $TTL 300 @ IN SOA vidhar.lan.yggdrasil. hostmaster.yggdrasil.li ( - 2023022700 ; serial + 2023030402 ; serial 300 ; refresh 300 ; retry 300 ; expire @@ -11,8 +11,11 @@ $TTL 300 IN NS vidhar.lan.yggdrasil. 1.0 IN PTR vidhar.lan.yggdrasil. -2.0 IN PTR printer.lan.yggdrasil. 1.1 IN PTR vidhar.mgmt.yggdrasil. 2.1 IN PTR switch01.mgmt.yggdrasil. 4.1 IN PTR ap01.mgmt.yggdrasil. + +3.2 IN PTR printer.printer.yggdrasil. + +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 @@ $ORIGIN 1.0.0.0.a.d.a.0.2.5.0.0.0.0.0.4.3.0.a.2.ip6.arpa. $TTL 300 @ IN SOA vidhar.lan.yggdrasil. hostmaster.yggdrasil.li ( - 2022031801 ; serial + 2023030400 ; serial 300 ; refresh 300 ; retry 300 ; expire @@ -13,3 +13,5 @@ $TTL 300 0.0.0.0.0.0.0.0.0.0.0.0 IN PTR surtr.yggdrasil. 0.0.0.0.0.0.0.0.0.0.0.1 IN PTR vidhar.yggdrasil. 0.0.0.0.0.0.0.0.0.0.0.2 IN PTR sif.yggdrasil. + +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 @@ $ORIGIN yggdrasil. $TTL 300 @ IN SOA vidhar.yggdrasil. hostmaster.yggdrasil.li ( - 2023022700 ; serial + 2023030405 ; serial 300 ; refresh 300 ; retry 300 ; expire @@ -23,9 +23,13 @@ pgbackrest.surtr IN CNAME surtr.yggdrasil. vidhar.lan IN A 10.141.0.1 -printer.lan IN A 10.141.0.2 vidhar.mgmt IN A 10.141.1.1 switch01.mgmt IN A 10.141.1.2 dsl01.mgmt IN A 10.141.1.3 ap01.mgmt IN A 10.141.1.4 + +printer.printer IN A 10.141.3.2 + +printing.vidhar.lan IN A 10.141.4.1 +printing.vidhar IN AAAA 2a03:4000:52:ada:4::1 -- cgit v1.2.3