From a045355053122a950589b8c763b43a0b5ee7bca5 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 7 Oct 2023 22:31:37 -0700 Subject: [PATCH] Oh for FUCKS sake --- 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 03f6a7d..953c8c4 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -58,7 +58,7 @@ let hostToFqdn = host: let hostChars = "[a-zA-Z0-9_-]"; - in if isNotNull (builtins.match "^${hostChars}+$") then + in if isNotNull (builtins.match "^${hostChars}+$" host) then "${host}.${domain}." else if isNotNull (builtins.match "${hostChars}+\\.$" host) then host