[ldns-users] whitespace bug in ldns-read-zone?
Matthijs Mekking
matthijs at nlnetlabs.nl
Wed Jun 18 08:03:22 UTC 2014
Hi Robert,
A bug: the comment line starts with whitespace and ends with a comment,
but it is not catched as an empty line. Quick workaround is to remove
the left side whitespace before the comment.
I have committed a fix in our git repository so that ldns-read-zone does
read this zone without errors.
http://git.nlnetlabs.nl/ldns/commit/?h=develop&id=d6037a22fbedb8ef3a22de4107e4eaa36840865b
Best regards,
Matthijs
On 06/17/2014 08:25 PM, Robert Edmonds wrote:
> Hi,
>
> I was editing a zone file today and found a case that named-checkzone
> parses without error, but ldns-read-zone does not. Here is a reduced
> test case reproducing the issue:
>
> edmonds at chase{0}:/tmp$ cat test.zone
> $TTL 1
> @ SOA test. test. 1 1 1 1 1
> NS ns1.
> ; Comment.
> NS ns2.
> edmonds at chase{0}:/tmp$ named-checkzone -D test ./test.zone
> zone test/IN: loaded serial 1
> test. 1 IN SOA test. test. 1 1 1 1 1
> test. 1 IN NS ns1.
> test. 1 IN NS ns2.
> OK
> edmonds at chase{0}:/tmp$ ldns-read-zone -z ./test.zone
> Syntax error, could not parse the RR's TTL at 4
> edmonds at chase{1}:/tmp$ ldns-read-zone -v
> read zone version 1.6.17 (ldns version 1.6.17)
> edmonds at chase{0}:/tmp$
>
> Is this maybe a bug in ldns?
>
More information about the ldns-users
mailing list