Zones can be imported from and exported to RFC 1035 master files #179

Open
opened 2026-10-31 12:42:21 -04:00 by claude · 0 comments
Owner
  • Draft: PN-34
  • Priority: medium (the migration path from other authoritative servers and registrars)
  • Agent: none (epic)
  • Depends on: none
  • Decisions: Q-PN-12, R2-MS-HOSTS

Why

There is no zone-file parser or writer: no $ORIGIN handling and no presentation-format RDATA. Record codecs are wire-only (IDnsRecordDataCodec.Read/Write, src/dotnet/src/Ninlil.Dns.Common/Wire/Records/IDnsRecordDataCodec.cs:53,73). Stored records go through RecordEntityCodec.FromWireRecord (src/dotnet/src/Ninlil.Dns.Server.Authoritative/Cache/RecordEntityCodec.cs:72), which an importer can reuse after text→wire. ZonesController has no import or export action (src/dotnet/src/Ninlil.Web/Controllers/ZonesController.cs:91-597).

What changes

Children: #180 (reader), #181 and #235 (typed presentation RDATA), #182 (writer), #183 (service and API), #184 (api-regen), #185 (console).

Acceptance

  • Children closed; README.md zone section documents import and export.

Source

audit-feature-parity.md §2A #16.
Owner decision 2026-10-31: replace and merge, both with a dry run, plus create-from-file (Q-PN-12); round 2: zone-file import stays in this milestone (R2-MS-HOSTS).

- **Draft:** PN-34 - **Priority:** medium (the migration path from other authoritative servers and registrars) - **Agent:** none (epic) - **Depends on:** none - **Decisions:** Q-PN-12, R2-MS-HOSTS ### Why There is no zone-file parser or writer: no `$ORIGIN` handling and no presentation-format RDATA. Record codecs are wire-only (`IDnsRecordDataCodec.Read`/`Write`, `src/dotnet/src/Ninlil.Dns.Common/Wire/Records/IDnsRecordDataCodec.cs:53,73`). Stored records go through `RecordEntityCodec.FromWireRecord` (`src/dotnet/src/Ninlil.Dns.Server.Authoritative/Cache/RecordEntityCodec.cs:72`), which an importer can reuse after text→wire. `ZonesController` has no import or export action (`src/dotnet/src/Ninlil.Web/Controllers/ZonesController.cs:91-597`). ### What changes Children: #180 (reader), #181 and #235 (typed presentation RDATA), #182 (writer), #183 (service and API), #184 (api-regen), #185 (console). ### Acceptance - [ ] Children closed; README.md zone section documents import and export. ### Source `audit-feature-parity.md` §2A #16. Owner decision 2026-10-31: replace and merge, both with a dry run, plus create-from-file (Q-PN-12); round 2: zone-file import stays in this milestone (R2-MS-HOSTS).
Sign in to join this conversation.
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#179
No description provided.