Title: Message.normalize throws ClassCastException on a QTYPE=RRSIG answer at a CNAME or DNAME owner · Issue #437 · dnsjava/dnsjava · GitHub
Open Graph Title: Message.normalize throws ClassCastException on a QTYPE=RRSIG answer at a CNAME or DNAME owner · Issue #437 · dnsjava/dnsjava
X Title: Message.normalize throws ClassCastException on a QTYPE=RRSIG answer at a CNAME or DNAME owner · Issue #437 · dnsjava/dnsjava
Description: In 3.7.1, a validating lookup for an RRSIG at a CNAME owner fails with a ClassCastException inside Message.normalize. Ask for alias.example. RRSIG where alias is a CNAME, and BIND, Knot and NSD all answer with just the CNAME's signature:...
Open Graph Description: In 3.7.1, a validating lookup for an RRSIG at a CNAME owner fails with a ClassCastException inside Message.normalize. Ask for alias.example. RRSIG where alias is a CNAME, and BIND, Knot and NSD all...
X Description: In 3.7.1, a validating lookup for an RRSIG at a CNAME owner fails with a ClassCastException inside Message.normalize. Ask for alias.example. RRSIG where alias is a CNAME, and BIND, Knot and NSD all...
Opengraph URL: https://github.com/dnsjava/dnsjava/issues/437
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Message.normalize throws ClassCastException on a QTYPE=RRSIG answer at a CNAME or DNAME owner","articleBody":"In 3.7.1, a validating lookup for an RRSIG at a CNAME owner fails with a ClassCastException inside `Message.normalize`.\n\nAsk for `alias.example. RRSIG` where `alias` is a CNAME, and BIND, Knot and NSD all answer with just the CNAME's signature:\n\n alias.example. 300 IN RRSIG CNAME 13 2 300 ...\n\n`getSectionRRsets` puts that signature in an RRset whose `getType()` is CNAME, the type it covers. `normalize` then takes its CNAME branch and casts `rrset.first()` to `CNAMERecord`, but the first record is the RRSIG:\n\n java.lang.ClassCastException: class org.xbill.DNS.RRSIGRecord cannot be cast to class org.xbill.DNS.CNAMERecord\n at org.xbill.DNS.Message.normalize(Message.java:979)\n at org.xbill.DNS.Message.normalize(Message.java:811)\n at org.xbill.DNS.dnssec.ValidatingResolver.lambda$sendRequest$0(ValidatingResolver.java:886)\n\nDNAME has the same problem. And since `ValidatingResolver` normalizes before its own \"positive RRSIG responses cannot be validated\" check, the lookup ends as an IOException instead of that answer.\n\nA fix could branch on `rrset.getActualType()`, or skip signature-only sets, so an RRset holding only RRSIGs is treated as RRSIG data.\n\nTo reproduce: sign a zone with `alias CNAME target`, then send `Message.newQuery(Record.newRecord(Name.fromString(\"alias.example.\"), Type.RRSIG, DClass.IN))` through a `ValidatingResolver`.\n\nNothing urgent on our side. A test pins today's behaviour, so we'll see when it changes. Happy to send a PR.\n\nThanks,\nKaveh Ranjbar\nWhisper Security\n","author":{"url":"https://github.com/kakooch","@type":"Person","name":"kakooch"},"datePublished":"2026-11-17T11:39:56Z","url":"https://github.com/dnsjava/dnsjava/issues/437"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:309e8f13-19c4-d549-ced6-b8c32fbaf128 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A72A:4A90:AE4DC:DDB1F:6B062BC0 |
| html-safe-nonce | 4db6b8a3abcaeff3824dd0af43b3bc371879b54b8fa966d3954ae9ceeede8001 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzJBOjRBOTA6QUU0REM6RERCMUY6NkIwNjJCQzAiLCJ2aXNpdG9yX2lkIjoiODU2NzIwOTg4NzQ3MjY5MjE2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 80b0d9f1bfae763b597b637465c55cd9026340d23eb6125030ff43997dd621fb |
| hovercard-subject-tag | issue:6443720319 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dnsjava/dnsjava/437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/769c257f27fec49c770c2e0ddaa95b98fb7cc2e88e2b7cbc02be2b38dd589f65/dnsjava/dnsjava/issues/437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/769c257f27fec49c770c2e0ddaa95b98fb7cc2e88e2b7cbc02be2b38dd589f65/dnsjava/dnsjava/issues/437 |
| og:image:alt | In 3.7.1, a validating lookup for an RRSIG at a CNAME owner fails with a ClassCastException inside Message.normalize. Ask for alias.example. RRSIG where alias is a CNAME, and BIND, Knot and NSD all... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kakooch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/dnsjava/dnsjava git https://github.com/dnsjava/dnsjava.git |
| octolytics-dimension-user_id | 6755615 |
| octolytics-dimension-user_login | dnsjava |
| octolytics-dimension-repository_id | 17084567 |
| octolytics-dimension-repository_nwo | dnsjava/dnsjava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17084567 |
| octolytics-dimension-repository_network_root_nwo | dnsjava/dnsjava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width