Include extra IP
This commit is contained in:
parent
aa30d4e0a7
commit
30b88e6eea
|
@ -7,7 +7,7 @@
|
||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib.ip)
|
inherit (pkgs.lib.ip)
|
||||||
networkMinIp networkMaxButOneIp ipv4OnNetwork getNetworkMask getNetworkBase;
|
networkMinIp networkMaxIp ipv4OnNetwork getNetworkMask getNetworkBase;
|
||||||
|
|
||||||
range = base: top:
|
range = base: top:
|
||||||
assert base < top;
|
assert base < top;
|
||||||
|
@ -46,7 +46,7 @@ let
|
||||||
else
|
else
|
||||||
"unassigned-${n}.${domain}";
|
"unassigned-${n}.${domain}";
|
||||||
minIp = toInt (getLastIpComponent (networkMinIp network));
|
minIp = toInt (getLastIpComponent (networkMinIp network));
|
||||||
maxIp = toInt (getLastIpComponent (networkMaxButOneIp network));
|
maxIp = toInt (getLastIpComponent (networkMaxIp network));
|
||||||
in map (n: ptrEntry n (getHostname (toString n))) (range minIp maxIp);
|
in map (n: ptrEntry n (getHostname (toString n))) (range minIp maxIp);
|
||||||
|
|
||||||
nameserverEntries = map (nameserver: "@ IN NS ${nameserver}") nameservers;
|
nameserverEntries = map (nameserver: "@ IN NS ${nameserver}") nameservers;
|
||||||
|
|
Loading…
Reference in New Issue