The wire library reads and writes the RFC 8914 Extended DNS Error option #126

Open
opened 2026-10-31 12:42:11 -04:00 by claude · 0 comments
Owner
  • Draft: PQ-20
  • Priority: medium
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: none

Why

There is no EDE encoder, so no reply can carry one.

What changes

  • Ninlil.Dns.Common/Wire/: add an ExtendedDnsError record (info-code, UTF-8 extra text), encoded and decoded per RFC 8914 §2.
  • Ninlil.Dns.Common/Enum/ExtendedDnsErrorCodeEnum.cs with the IANA "Extended DNS Error Codes" registry values.
  • Helper DnsEdnsOptions.WithExtendedError(...).

Acceptance

  • Round-trip test fails first in the Ninlil.Dns.Common tests project: code 15 with text "x" encodes to the bytes RFC 8914 §2 specifies and decodes back.
  • Malformed option (length < 2) throws FormatException.
  • Whole solution passes (shared library).

Source

RFC 8914 §2; IANA EDE registry.

- **Draft:** PQ-20 - **Priority:** medium - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** none ### Why There is no EDE encoder, so no reply can carry one. ### What changes - `Ninlil.Dns.Common/Wire/`: add an `ExtendedDnsError` record (info-code, UTF-8 extra text), encoded and decoded per RFC 8914 §2. - `Ninlil.Dns.Common/Enum/ExtendedDnsErrorCodeEnum.cs` with the IANA "Extended DNS Error Codes" registry values. - Helper `DnsEdnsOptions.WithExtendedError(...)`. ### Acceptance - [ ] Round-trip test fails first in the `Ninlil.Dns.Common` tests project: code 15 with text "x" encodes to the bytes RFC 8914 §2 specifies and decodes back. - [ ] Malformed option (length < 2) throws `FormatException`. - [ ] Whole solution passes (shared library). ### Source RFC 8914 §2; IANA EDE registry.
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#126
No description provided.