diff --git a/config/services/named.nix b/config/services/named.nix index b7369cd9..8a0d1506 100644 --- a/config/services/named.nix +++ b/config/services/named.nix @@ -13,7 +13,7 @@ in ksk = "services/dns/rs/chir/32969"; zsk = "services/dns/rs/chir/51207"; zone = chir-rs; - zonename = "staging.chir.rs"; + zonename = "chir.rs"; }) ]; @@ -28,15 +28,17 @@ in file = "darkkirb.de.zone"; }; "chir.rs" = { - master = false; - masters = [ - "fd00:e621:e621::1" - ]; - file = "chir.rs.zone"; - }; - "staging.chir.rs" = { master = true; - file = "/var/lib/named/staging.chir.rs"; + file = "/var/lib/named/chir.rs"; + }; + "_acme-challenge.chir.rs" = { + master = true; + file = "_acme-challenge.chir.rs"; + extraConfig = '' + update-policy { + grant certbot. name _acme-challenge.chir.rs. txt; + } + ''; }; "int.chir.rs" = { master = false; @@ -57,6 +59,7 @@ in statistics-channels { ${toString listenEntries} }; + include "/run/secrets/services/dns/named-keys"; ''; extraOptions = '' allow-recursion { @@ -79,4 +82,5 @@ in bindURI = "http://${internalIP.listenIP}:8653/"; listenAddress = internalIP.listenIP; }; + sops.secrets."services/dns/named-keys" = { }; } diff --git a/secrets/nixos-8gb-fsn1-1/secrets.yaml b/secrets/nixos-8gb-fsn1-1/secrets.yaml index b436d35c..55110f84 100644 --- a/secrets/nixos-8gb-fsn1-1/secrets.yaml +++ b/secrets/nixos-8gb-fsn1-1/secrets.yaml @@ -24,6 +24,7 @@ services: virtual_alias_maps.cf: ENC[AES256_GCM,data:FgHuBbf2e/3Fq8A2WY0n8XWMjohpkHUsZdddG44PLHY4//UdFeWUzcGUyJ4G4RsqEZo3thTOPxMzkXEV+eWThtdDzEtw+njdFAzltP0HRM3VtKn0LhXVP4SvyAKwGAFtCPz3R/EiutHhOv5o/4NmbRQrWByIPvWMZCfTO1NYz/P6,iv:jYMHwhCSGMdUgolGxHJxPTaUu5U0Z3uc/+JHUNPjKXo=,tag:88THWp6r3SDNSd77uUBEbw==,type:str] virtual_mailbox_domains.cf: ENC[AES256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BCIDGst7T0Ceiz+9XRT4L8/qM4Lv4=,tag:pI+osFnPdBemZXKftuSPDg==,type:str] @@ -60,8 +61,8 @@ sops: N1lNTTRhSDFsczd4VjNudUU2NEt4MUEKdVJIJmaoGcwUHa0BGB45jqYnm9aPVZxP dl1vkMx8EAiKhWKbBwQm5fFZcNh371rspGE7KOXmwNbNWef5bVfHpQ== -----END AGE ENCRYPTED FILE----- - lastmodified: "2022-02-09T08:24:21Z" - mac: ENC[AES256_GCM,data:40/Z9j5+W+cY5lRqyGjrflpAVoWOAG3tVy7btWD+snI7UIeqhDtvRKzpayBdltA4X+kPgegS+haElUFRykfYB8asUBlzU+D0tBGbCQV/MasGxvVGL+1MCSpJFullVtUIWJ+qnmpfgRqdI0m9xZdeTp0BGf3DBrURiUmCfMfyfK8=,iv:1NKn9YJsMxTmKAexpXjJIWqkK8gR+en0XBw6jwNxKg0=,tag:J7i7Zt6eFJceP7EL1qCb5w==,type:str] + lastmodified: "2022-02-09T08:45:20Z" + mac: ENC[AES256_GCM,data:6MI/0X1lcULre/8dImg2iSNrNy6hZlnhIGca0K7eaZiC+DLDjp8d7GGKQfxaGX+DFSx7mPvwseQp52dWVgRfAQARyPitRahe7wPFZG1nbCHwzOck/LQ88KzQQ0h9f9hXIaQRfI53fGsPZR+O2NB1RlLls8EFHZvT065qpZjPHt0=,iv:TI8zreHbGTTSuMNvN5aKFHRQUu6TPga0xzC9vvOqx3w=,tag:tsx+lkRY6ZpZUQ97Fn7nOg==,type:str] pgp: - created_at: "2022-02-02T17:50:42Z" enc: | diff --git a/zones/chir.rs.nix b/zones/chir.rs.nix index fcf49283..e3691667 100644 --- a/zones/chir.rs.nix +++ b/zones/chir.rs.nix @@ -166,7 +166,6 @@ let mail = createZone { }; int = delegateTo [ - "ns1.darkkirb.de." "ns2.darkkirb.de." ] // { DS = [{