Skip to content

Commit

Permalink
trying (but failing) to get zone delegated
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Dec 21, 2023
1 parent 4324fb6 commit 2a799b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions nix/nixos-modules/roles/auth-dns/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ let
in with lib; {
# vault kv put kv/ddns-key/secrets \
# s03=@
vault-secrets.secrets."ddns-key" = { user = "named"; };
vault-secrets.secrets."ddns-key" = {
user = "named";
services = mkForce [ ];
};

networking.firewall.allowedUDPPorts = [ 53 ];

Expand Down Expand Up @@ -124,8 +127,8 @@ in with lib; {
systemd.services.generate-bind-key-includes = {
description = "Generate config includes for BIND keys";

# after = [ "ddns-key-secrets.service" ];
# requires = [ "ddns-key-secrets.service" ];
after = [ "ddns-key-secrets.service" ];
requires = [ "ddns-key-secrets.service" ];

before = [ "bind.service" ];
requiredBy = [ "bind.service" ];
Expand Down
10 changes: 5 additions & 5 deletions nix/nixos-modules/roles/auth-dns/nya.haus.zone
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
; Registrar: https://porkbun.com

$ORIGIN nya.haus
$ORIGIN nya.haus.
$TTL 1h

@ 1h IN SOA dennis.astrid.tech. admin.astrid.tech. (
; SOA value reccommendations
; https://www.ripe.net/publications/docs/ripe-203
2022111200 ; serial YYMMDDnn
2023122000 ; serial YYMMDDnn
3h ; refresh (3h to allow faster refresh)
1h ; retry
1d ; expire
Expand All @@ -17,9 +17,9 @@ $TTL 1h
@ IN NS dennis.astrid.tech.

;;; FreeIPA and directory services
id IN NS ipa0.id
ipa0.id IN A 100.64.64.64
ipa0.id IN AAAA fd7a:115c:a1e0::b4d1:1b7f
;id.nya.haus. IN NS ipa0.id.nya.haus.
ipa0.id.nya.haus. IN A 100.64.64.64
ipa0.id.nya.haus. IN AAAA fd7a:115c:a1e0::b4d1:1b7f

;;; Mail security
@ IN TXT "v=spf1 -all"
Expand Down

0 comments on commit 2a799b7

Please sign in to comment.