diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index 492baef..67b5670 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -54,6 +54,8 @@ let lines = splitString "\n" zonedata; in concatStringsSep "\n" (map formatter lines); + isNotNull = o: !isNull o; + hostToFqdn = host: if isNotNull (match ".+.$" host) then host