Skip to content

Request: Be able to retrieve raw label and rdata #410

Description

@GeorgeMathiasLumen

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.

Thank You

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions