Include extra IP

This commit is contained in:
niten 2023-11-03 18:15:24 -07:00
parent aa30d4e0a7
commit 30b88e6eea
1 changed files with 2 additions and 2 deletions

View File

@ -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;