You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request: Be able to retrieve raw label and rdata #410
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 qualified as well. How can I get a label and rdata as it appears in the zone file.
For e.g.
$ORIGIN planet.net.
ipa1.ams1 CNAME s5-0-0-4-0.ipa1.ams1
$ORIGIN ipa1.ams1.planet.net.
s5-0-0-1-0 A 192.168.10.12
I 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.
As of now, since the record returns ipa1.ams1.planet.net. I cannot tell which one is origin and the short label.
Activity
ibauersachs commentedon Aug 30, 2026
Adding this would require some new API to iterate. If you have an idea, I'd appreciate your thoughts. In any case, this will take some time.