diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index 39c5341..03f6a7d 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -68,8 +68,8 @@ let else abort "unrecognized hostname: ${host}"; - makeSrvRecords = protocol: service: - "records:joinLines" (map (record: + makeSrvRecords = protocol: service: records: + joinLines (map (record: let fqdn = hostToFqdn record.host; in "_${service}._${protocol} IN SRV ${toString record.priority} ${ toString record.weight