Title: Request: Be able to retrieve raw label and rdata · Issue #410 · dnsjava/dnsjava · GitHub
Open Graph Title: Request: Be able to retrieve raw label and rdata · Issue #410 · dnsjava/dnsjava
X Title: Request: Be able to retrieve raw label and rdata · Issue #410 · dnsjava/dnsjava
Description: I am using dnsjava to parse zone files which are then loaded into the database. Currently, when I do master.nextRecord() on a CNAME/NS/MX records, it returns me fully qualified rdata even if it is a short name. Also labels are fully qual...
Open Graph Description: I am using dnsjava to parse zone files which are then loaded into the database. Currently, when I do master.nextRecord() on a CNAME/NS/MX records, it returns me fully qualified rdata even if it is ...
X Description: I am using dnsjava to parse zone files which are then loaded into the database. Currently, when I do master.nextRecord() on a CNAME/NS/MX records, it returns me fully qualified rdata even if it is ...
Opengraph URL: https://github.com/dnsjava/dnsjava/issues/410
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request: Be able to retrieve raw label and rdata","articleBody":"I am using dnsjava to parse zone files which are then loaded into the database.\n\nCurrently, when I do master.nextRecord() on a CNAME/NS/MX records, it returns me fully qualified rdata even if it is a short name. Also labels are fully qualified as well. How can I get a label and rdata as it appears in the zone file.\n\nFor e.g. \n\n$ORIGIN planet.net.\nipa1.ams1 CNAME s5-0-0-4-0.ipa1.ams1\n$ORIGIN ipa1.ams1.planet.net.\ns5-0-0-1-0 A 192.168.10.12\n\nI would like to be able to get value of label as \"ipa1.ams1\" and rdata as \"s5-0-0-4-0.ipa1.ams1\". Also, how do I get origin of \"ipa1.ams1.planet.net.\" from the record. \n\nAs of now, since the record returns ipa1.ams1.planet.net. I cannot tell which one is origin and the short label.\n\nThank You\n\n","author":{"url":"https://github.com/GeorgeMathiasLumen","@type":"Person","name":"GeorgeMathiasLumen"},"datePublished":"2026-07-08T20:38:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/410/dnsjava/issues/410"}
| 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:d717a6f0-51cf-45f6-593b-0bc52d9206c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8088:395CE1:29BA51:3CC367:6A636960 |
| html-safe-nonce | f976fde794345a6f22f124940111344f2d601b6ad2af5bc543c1f9bd29e8638c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDg4OjM5NUNFMToyOUJBNTE6M0NDMzY3OjZBNjM2OTYwIiwidmlzaXRvcl9pZCI6IjIzMjI2MjA3NDIzOTQ2Njk0MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 406d8c6401cc91ff81465eebec26d7e44e6aa0c1725a6d429e7a1bd1c617dbc8 |
| hovercard-subject-tag | issue:4840919159 |
| 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/410/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e78a3dd598d59e2d430c1461cd9f229d1b778dcc4e75d07cd0c4b4a819a1aaad/dnsjava/dnsjava/issues/410 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e78a3dd598d59e2d430c1461cd9f229d1b778dcc4e75d07cd0c4b4a819a1aaad/dnsjava/dnsjava/issues/410 |
| og:image:alt | I am using dnsjava to parse zone files which are then loaded into the database. Currently, when I do master.nextRecord() on a CNAME/NS/MX records, it returns me fully qualified rdata even if it is ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GeorgeMathiasLumen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 669d3fcd704a169521d2b6431762f95a6878a9e8ccaf0fd5f2d0802fc5b971f9 |
| 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 | 20da292f132ff51328be50073854259f417052c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width