8000 RelativeNameException since 3.6.2 · Issue #346 · dnsjava/dnsjava · GitHub
[go: up one dir, main page]

Skip to content
RelativeNameException since 3.6.2 #346
Closed
@eliddan

Description

@eliddan

Since version 3.6.2, I have a org.xbill.DNS.RelativeNameException thrown when parsing a zone file to get a Zone instance.

Zone zone = new Zone(zoneName, "my_zone_file");

The associated message is org.xbill.DNS.RelativeNameException: '@' is not an absolute name.

My zone file looks like this.

$TTL 600
my-zone.com. IN SOA ns1.foo.com. john.doe.foo.com. 2023110717 28800 7200 604800 7200

@ 86400 IN NS ns1.foo.com.
@ 86400 IN NS ns2.foo.com.
@ 86400 IN NS ns3.foo.com.
@ IN A 1.2.3.4

We can notice that there is no $ORIGIN directive, and it works well if it is present in the file before RR declarations. But I think this directive is not mandatory (there is an implicit <zone_name>. origin).

The issue appeared with version 6.3.2, so I suspect to be a side effect of #335.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0