toString ip component

This commit is contained in:
niten 2023-11-03 13:24:08 -07:00
parent be1956e895
commit e2ecff828c
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ let
networkHostsByComponent =
mapAttrs' (ip: hostname: nameValuePair (getLastIpComponent ip) hostname)
(getNetworkHosts network ipHostMap);
ptrEntry = ip: hostname: "${ip} IN PTR ${hostname}.";
ptrEntry = ip: hostname: "${toString ip} IN PTR ${hostname}.";
getHostname = n:
if hasAttr n networkHostsByComponent then
networkHostsByComponent."${n}"