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:05:03 -07:00
commit b3af42b085
2 files changed
+7 -3

No files matched your search

@@ -183,8 +183,9 @@ describe('RFC2136 listRecords via AXFR (BIND 9 parity, DC-171)', () => {
const [, args] = execFile.mock.calls[0]; const [, args] = execFile.mock.calls[0];
expect(args[0]).toBe('@192.0.2.10'); expect(args[0]).toBe('@192.0.2.10');
expect(args.slice(1, 3)).toEqual(['-p', '53']); expect(args.slice(1, 3)).toEqual(['-p', '53']);
expect(args[3]).toBe('AXFR'); // dig's documented positional contract: [name] [type] — zone before AXFR
expect(args[4]).toBe('other.example.com.'); expect(args[3]).toBe('other.example.com.');
expect(args[4]).toBe('AXFR');
expect(args.slice(5)).toContain('+onesoa'); expect(args.slice(5)).toContain('+onesoa');
const kIdx = args.indexOf('-k'); const kIdx = args.indexOf('-k');
expect(kIdx).toBeGreaterThan(-1); expect(kIdx).toBeGreaterThan(-1);
@@ -337,10 +337,13 @@ class RFC2136Provider extends BaseDNSProvider {
if (!effectiveZone) throw new Error('Missing required config: zone'); if (!effectiveZone) throw new Error('Missing required config: zone');
const fqdnZone = this._ensureFqdn(effectiveZone); const fqdnZone = this._ensureFqdn(effectiveZone);
// dig positional contract is `dig [@server] [name] [type]` — zone name
// FIRST, then the AXFR request type (BIND 9.18 happens to accept either
// order, but 9.11-9.16 on older distros follow the documented order).
const args = [ const args = [
`@${this.server}`, `@${this.server}`,
'-p', String(this.port), '-p', String(this.port),
'AXFR', fqdnZone, fqdnZone, 'AXFR',
'+nocomments', '+onesoa', '+nostats', '+nocomments', '+onesoa', '+nostats',
'+time=10', '+tries=1', '+time=10', '+tries=1',
]; ];