diff --git a/nix/nixos-module/container/dns.nix b/nix/nixos-module/container/dns.nix index 262d0db..71684f8 100644 --- a/nix/nixos-module/container/dns.nix +++ b/nix/nixos-module/container/dns.nix @@ -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);