From 071866cbd6c2872f4f0cc1b058c0e262a22b56c0 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 7 Oct 2023 09:47:29 -0700 Subject: [PATCH] Allow repeated sections to hostname --- 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 62ca5ac..548ffad 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}."