dns: fix missing dots

This commit is contained in:
Sandro - 2024-04-21 00:03:38 +02:00
parent e36881f687
commit d7fdfd8aa6
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ let
in { name, ns, records, ... }: util.writeZone name (with dns-nix.lib.combinators; {
TTL = 60*60;
SOA = {
nameServer = lib.dns.ns;
nameServer = "${lib.dns.ns}.";
adminEmail = "astro@spaceboyz.net";
serial = lib.toInt serial;
refresh = 60*60;
@ -16,7 +16,7 @@ let
expire = 2*60;
minimum = 60;
};
NS = ns;
NS = map (a: a+".") ns;
subdomains = lib.foldl (a: b: lib.recursiveUpdate a b) { } (map ({ name, type, data }: {
${name}.${type} = [ data ];
}) records);