From ec7e11c0f773ad201d26514d67e62696dbc208d2 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 7 Oct 2023 09:42:17 -0700 Subject: [PATCH] Missing a \\. --- zone-to-zonefile.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}."