GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records by hyperxpro · Pull Request #17373 · netty/netty

Conversation

@hyperxpro

@hyperxpro hyperxpro commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Motivation:

IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not define them. valueOf(int) fabricates an UNKNOWN for their code points and valueOf(String) rejects the mnemonics outright.

Modification:

Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344), OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC 8976), and register them so both valueOf overloads resolve them.

RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX already does. Pin the code points in a test, since the existing reflection sweep proves a constant is registered but not that its value is right.

Result:

The six types decode as themselves rather than as UNKNOWN.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hyperxpro
codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records
b4ad136
Motivation:

DnsRecordType is missing six types that IANA has assigned in the
"Resource Record (RR) TYPEs" registry. valueOf(int) fabricates an
UNKNOWN instance for them, so a caller cannot match on the type, and
valueOf(String) rejects the mnemonic outright.

Modification:

Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344),
OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63,
RFC 8976), and register them so both valueOf overloads resolve them.
RFC 8162 and RFC 7929 are Experimental; the Javadoc says so, following
the precedent set by KX, since the code points are assigned either way.

Pin the code points in a test. The existing reflection-driven sweep
proves a constant is registered but not that its value is correct, so a
transposed number would still round-trip through valueOf(int).

Grow the StringBuilder behind the valueOf(String) error message, which
these six take to 504 of its 512 characters.

Result:

The six types decode as themselves rather than as UNKNOWN.
@testlens-app

testlens-app Bot commented Aug 31, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ All tests passed ✅

⚠️ TestLens detected flakiness ⚠️

Test Summary

Build PR / linux-x86_64-java11 build > Netty/Codec/Native/Quic

Test Runs Flakiness
QuicStreamFrameTest > testCloseHalfClosureUnidirectional(Executor) > [2] java.util.concurrent.Executors$FinalizableDelegatedExecu… ❌ ✅ 1% 🟡

Build PR / linux-x86_64-java26 build > Netty/Codec/HTTP2

Test Runs Flakiness
Http2MultiplexTransportTest ❌ ✅ 1% 🟡

🏷️ Commit: b4ad136
▶️ Tests: 75342 executed
⚪️ Checks: 25/25 completed


Learn more about TestLens at testlens.app/docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer normanmaurer added this to the 4.2.19.Final milestone Sep 14, 2026
@normanmaurer normanmaurer added needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. labels Sep 14, 2026
@normanmaurer
normanmaurer merged commit 5019755 into netty:4.2 Sep 14, 2026
42 of 44 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@netty-project-bot

netty-project-bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Auto-port PR for 4.1: #17459

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. label Sep 14, 2026
This was referenced Sep 14, 2026
Auto-port 4.1: codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records #17459
Merged
Auto-port 5.0: codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records #17461
Merged
@netty-project-bot

netty-project-bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #17461

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Sep 14, 2026
normanmaurer pushed a commit that referenced this pull request Sep 14, 2026
@netty-project-bot @hyperxpro
Auto-port 5.0: codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC…
6482649
…, ZONEMD records (#17461)

Auto-port of #17373 to 5.0
Cherry-picked commit: 5019755

---
Motivation:

IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in
the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not
define them. valueOf(int) fabricates an UNKNOWN for their code points
and valueOf(String) rejects the mnemonics outright.

Modification:

Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344),
OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC
8976), and register them so both valueOf overloads resolve them.

RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX
already does. Pin the code points in a test, since the existing
reflection sweep proves a constant is registered but not that its value
is right.

Result:

The six types decode as themselves rather than as UNKNOWN.

Co-authored-by: Aayush Atharva <[email protected]>
normanmaurer pushed a commit that referenced this pull request Sep 14, 2026
@netty-project-bot @hyperxpro
Auto-port 4.1: codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC…
6b72b06
…, ZONEMD records (#17459)

Auto-port of #17373 to 4.1
Cherry-picked commit: 5019755

---
Motivation:

IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in
the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not
define them. valueOf(int) fabricates an UNKNOWN for their code points
and valueOf(String) rejects the mnemonics outright.

Modification:

Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344),
OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC
8976), and register them so both valueOf overloads resolve them.

RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX
already does. Pin the code points in a test, since the existing
reflection sweep proves a constant is registered but not that its value
is right.

Result:

The six types decode as themselves rather than as UNKNOWN.

Co-authored-by: Aayush Atharva <[email protected]>
@normanmaurer normanmaurer mentioned this pull request Oct 1, 2026
child5 #17695
Closed
@hyperxpro
hyperxpro deleted the dnssec-records branch October 6, 2026 19:12
lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
@netty-project-bot @hyperxpro @lltopk
Auto-port 4.1: codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC…
691a9e8
…, ZONEMD records (netty#17459)

Auto-port of netty#17373 to 4.1
Cherry-picked commit: 5019755

---
Motivation:

IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in
the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not
define them. valueOf(int) fabricates an UNKNOWN for their code points
and valueOf(String) rejects the mnemonics outright.

Modification:

Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344),
OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC
8976), and register them so both valueOf overloads resolve them.

RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX
already does. Pin the code points in a test, since the existing
reflection sweep proves a constant is registered but not that its value
is right.

Result:

The six types decode as themselves rather than as UNKNOWN.

Co-authored-by: Aayush Atharva <[email protected]>
@normanmaurer normanmaurer mentioned this pull request Oct 26, 2026
crisp nova cceda091 #18109
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.2.19.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@hyperxpro @netty-project-bot @normanmaurer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.