dns: fix missing dots
This commit is contained in:
parent
e36881f687
commit
d7fdfd8aa6
|
@ -8,7 +8,7 @@ let
|
||||||
in { name, ns, records, ... }: util.writeZone name (with dns-nix.lib.combinators; {
|
in { name, ns, records, ... }: util.writeZone name (with dns-nix.lib.combinators; {
|
||||||
TTL = 60*60;
|
TTL = 60*60;
|
||||||
SOA = {
|
SOA = {
|
||||||
nameServer = lib.dns.ns;
|
nameServer = "${lib.dns.ns}.";
|
||||||
adminEmail = "astro@spaceboyz.net";
|
adminEmail = "astro@spaceboyz.net";
|
||||||
serial = lib.toInt serial;
|
serial = lib.toInt serial;
|
||||||
refresh = 60*60;
|
refresh = 60*60;
|
||||||
|
@ -16,7 +16,7 @@ let
|
||||||
expire = 2*60;
|
expire = 2*60;
|
||||||
minimum = 60;
|
minimum = 60;
|
||||||
};
|
};
|
||||||
NS = ns;
|
NS = map (a: a+".") ns;
|
||||||
subdomains = lib.foldl (a: b: lib.recursiveUpdate a b) { } (map ({ name, type, data }: {
|
subdomains = lib.foldl (a: b: lib.recursiveUpdate a b) { } (map ({ name, type, data }: {
|
||||||
${name}.${type} = [ data ];
|
${name}.${type} = [ data ];
|
||||||
}) records);
|
}) records);
|
||||||
|
|
Loading…
Reference in New Issue