--- a/pdns/auth-secondarycommunicator.cc 2026-06-07 22:10:43.000000000 +0200 +++ b/pdns/auth-secondarycommunicator.cc 2026-06-09 13:59:03.140354656 +0200 @@ -521,6 +521,7 @@ ctx.numDeltas = deltas.size(); // cout<<"Got "<startTransaction(domain, ctx.domain.id); SLOG(g_log << Logger::Info << ctx.logPrefix << "storage transaction started" << endl, ctx.slog->info(Logr::Info, "AXFR: storage transaction started")); --- a/pdns/rfc2136handler.cc 2026-06-07 22:10:43.000000000 +0200 +++ b/pdns/rfc2136handler.cc 2026-06-09 13:56:32.674355348 +0200 @@ -905,6 +905,7 @@ static uint8_t updateRecords(const MOADNSParser::answers_t& answers, DNSSECKeeper& dsk, uint& changedRecords, const std::unique_ptr& update_policy_lua, DNSPacket& packet, updateContext& ctx) { +#ifdef HAVE_LUA_RECORDS // Reject the complete update if it contains Lua records, unless explicitly // allowed, regardless of any other policy. if (!::arg().mustDo("enable-lua-record-updates")) { @@ -916,6 +917,7 @@ } } } +#endif vector cnamesToAdd; vector nonCnamesToAdd; --- a/pdns/ws-auth.cc 2026-06-07 22:10:43.000000000 +0200 +++ b/pdns/ws-auth.cc 2026-06-09 13:58:49.145447730 +0200 @@ -1753,6 +1753,7 @@ { std::vector> errors; +#ifdef HAVE_LUA_RECORDS // Do not perform Lua records updates if not allowed to. if (!::arg().mustDo("enable-lua-record-updates")) { for (const auto& rec : records) { @@ -1761,6 +1762,7 @@ } } } +#endif Check::checkRRSet({}, records, zone, flags, errors); if (errors.empty()) { @@ -2578,12 +2580,14 @@ // Apply a DELETE changetype. static applyResult applyDelete(const DomainInfo& domainInfo, DNSName& qname, QType& qtype, bool returnRRset, std::vector& rrset) { +#ifdef HAVE_LUA_RECORDS // Do not perform Lua records deletions if not allowed to. if (!::arg().mustDo("enable-lua-record-updates")) { if (qtype == QType::LUA) { throw ApiException("Update of Lua records is not allowed"); } } +#endif // Delete all matching qname/qtype RRs (and implicitly, comments). if (!domainInfo.backend->replaceRRSet(domainInfo.id, qname, qtype, {})) { throw ApiException("Hosting backend does not support editing records.");