diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index 0c40d79..62ca5ac 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -59,7 +59,7 @@ let hostToFqdn = host: if isNotNull (builtins.match "[^.]+\\.$" host) then host - else if isNotNull (builtins.match "[^.]+\\[^.]+$" host) then + else if isNotNull (builtins.match "[^.]+\\.[^.]+$" host) then "${host}." else if (hasAttr host zone.hosts) then "${host}.${domain}."