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:a70b627b-756a-7f9b-c5cc-d76891d93ed1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7C8:179354:915D5F:C4588A:6A62EA16 |
| html-safe-nonce | 676f6cf2b5ef801b373d0c11706fc841535567033617d33c5a2199adefd5b150 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0M4OjE3OTM1NDo5MTVENUY6QzQ1ODhBOjZBNjJFQTE2IiwidmlzaXRvcl9pZCI6IjE4ODkzNzkwNjY0ODQ0MzQxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bcb79491484aaafeba9b2c940bf02a5abd04e74dfe31477dffdfb46c52e705e7 |
| 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 | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| 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 | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width