Merge remote-tracking branch 'origin/dc/DC-168-calendar-widget' into dc167-deploy2

This commit is contained in:
DashCaddy Polish Loop committed 2026-10-29 22:00:35 -07:00
commit c971ade169
10 files changed
+704 -238

No files matched your search

+10 -1
View File
@@ -73,7 +73,16 @@ module.exports = function({
const zone = req.query.zone || (siteConfig.tld ? String(siteConfig.tld).replace(/^\./, '') : '');
const provider = dns.getActiveProvider ? dns.getActiveProvider() : null;
if (!provider || (provider.supportsCapability && !provider.supportsCapability('list-records'))) {
return errorResponse(res, 'Record listing not supported by current DNS provider', 501);
// DC-171: actionable guidance — name the provider and what it CAN do
const providerId = dns.getProviderId ? dns.getProviderId() : 'unknown';
const caps = provider && provider.getCapabilities ? provider.getCapabilities() : [];
return errorResponse(res,
`Record listing is not supported by the active DNS provider (${providerId}). `
+ `Supported capabilities: ${caps.join(', ') || 'none'}. `
+ `Push-only protocols (RFC 2136/BIND dynamic updates) can create, delete and `
+ `resolve records but cannot enumerate them server-side — list them with the `
+ `server's own tools (e.g. dig, the provider's web UI) or enable zone transfers.`,
501);
}
const result = await provider.listRecords({ zone });
const records = Array.isArray(result) ? result : (result && result.records) || [];