A stored record of a type with no codec no longer makes zone transfers fail #280

Merged
claude merged 2 commits from feature/273-no-codec-records into develop 2026-11-05 03:58:13 -05:00
Owner

A stored record of a type with no RDATA codec is now left out of the cached zone with one Warning. It no longer makes every AXFR of its zone throw NullReferenceException. Such a row can arrive by a restore, a storage switch, a cluster sync or a hand edit.

  • RecordEntityCodec.CanWriteRdata returns false when ToWireRecord yields null and logs the Warning that unwritable rows already get (zone, type, name, id, reason). The resolver, AXFR, IXFR and the signer therefore see the same zone.
  • ZoneTransferService.DecodeRecordSnapshot, which decodes journal snapshots for IXFR, drops nulls.
  • TryWriteSoa logs a Warning when the SOA converts to null.
  • I checked every other ToWireRecord caller; each one already filters nulls or tolerates them.
  • The README's signing bullet now also names types with no codec.

Tests:

  • Two new red-first tests in ZoneTransferServiceUnwritableRecordTests. A query for another name answers correctly and the bad name gives NXDOMAIN. AXFR completes without the row. Each logs exactly one Warning.
  • Authoritative.Tests pass 657 of 657.
  • Dnssec.Tests pass 122 of 122, on two runs.
  • The verifier passed the branch and re-ran the red check.

Closes #273

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

A stored record of a type with no RDATA codec is now left out of the cached zone with one Warning. It no longer makes every AXFR of its zone throw `NullReferenceException`. Such a row can arrive by a restore, a storage switch, a cluster sync or a hand edit. - `RecordEntityCodec.CanWriteRdata` returns false when `ToWireRecord` yields null and logs the Warning that unwritable rows already get (zone, type, name, id, reason). The resolver, AXFR, IXFR and the signer therefore see the same zone. - `ZoneTransferService.DecodeRecordSnapshot`, which decodes journal snapshots for IXFR, drops nulls. - `TryWriteSoa` logs a Warning when the SOA converts to null. - I checked every other `ToWireRecord` caller; each one already filters nulls or tolerates them. - The README's signing bullet now also names types with no codec. Tests: - Two new red-first tests in `ZoneTransferServiceUnwritableRecordTests`. A query for another name answers correctly and the bad name gives NXDOMAIN. AXFR completes without the row. Each logs exactly one Warning. - Authoritative.Tests pass 657 of 657. - Dnssec.Tests pass 122 of 122, on two runs. - The verifier passed the branch and re-ran the red check. Closes #273 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #273

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The README's bullet on records that cannot be signed is wrapped like the rest of the signing section
Some checks failed
Build / Pack and Push NuGet Packages (dns-server) (push) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (push) Has been skipped
Build / Build Binary (linux-amd64) (push) Has been skipped
Build / Build Binary (linux-arm64) (push) Has been skipped
Build / Build Binary (macos-amd64) (push) Has been skipped
Build / Build Binary (macos-arm64) (push) Has been skipped
Build / Build Binary (windows-amd64) (push) Has been skipped
Build / Build Arch Linux Packages (push) Has been skipped
Build / Smoke Test the Windows Binary (push) Has been skipped
Build / Build and Test Deb and RPM Packages (push) Has been skipped
Build / Build and Push Image (push) Has been skipped
Build / Publish Release (push) Has been skipped
Build / Pipeline (push) Failing after 0s
Build / Test .NET (pull_request) Failing after 10m25s
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Push Image (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
Build / Pipeline (pull_request) Failing after 0s
43b994d553
Refs #273

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit db8cbb47da into develop 2026-11-05 03:58:13 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!280
No description provided.