Common record types convert between master-file text and their typed data #181

Open
opened 2026-10-31 12:42:21 -04:00 by claude · 0 comments
Owner
  • Draft: PN-36
  • Priority: medium
  • Agent: protocol-coder
  • Depends on: #180
  • Decisions: none

Why

Readable import and export need typed presentation forms for the common types.

What changes

Add an optional presentation interface next to IDnsRecordDataCodec (for example IDnsRecordPresentationCodec with Parse(text, origin) and Format(data, origin)), registered in DnsRecordDataCodecRegistry. Implement it for:

  • A, AAAA, NS, CNAME, DNAME, PTR (RFC 1035 §3.3, RFC 3596 §2.1, RFC 6672)
  • MX, TXT, SOA, HINFO
  • SRV (RFC 2782)
  • CAA (RFC 8659 §4.1.1)

Acceptance

  • This test fails first: Parse_ForAnMxLine_ProducesPreferenceAndExchange.
  • A round-trip test per type (text → typed → text).
  • Gate: the whole solution.

Source

The RFCs named above.

- **Draft:** PN-36 - **Priority:** medium - **Agent:** protocol-coder - **Depends on:** #180 - **Decisions:** none ### Why Readable import and export need typed presentation forms for the common types. ### What changes Add an optional presentation interface next to `IDnsRecordDataCodec` (for example `IDnsRecordPresentationCodec` with `Parse(text, origin)` and `Format(data, origin)`), registered in `DnsRecordDataCodecRegistry`. Implement it for: - A, AAAA, NS, CNAME, DNAME, PTR (RFC 1035 §3.3, RFC 3596 §2.1, RFC 6672) - MX, TXT, SOA, HINFO - SRV (RFC 2782) - CAA (RFC 8659 §4.1.1) ### Acceptance - [ ] This test fails first: `Parse_ForAnMxLine_ProducesPreferenceAndExchange`. - [ ] A round-trip test per type (text → typed → text). - [ ] Gate: the whole solution. ### Source The RFCs named above.
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.

Reference
lantea-one/ninlil#181
No description provided.