[ldns-users] Bug with long TXT records

Willem Toorop willem at nlnetlabs.nl
Fri Mar 15 20:53:13 UTC 2019

Hi Klaus,

Unfortunately ldns has a hard limit on the size of the RR to parse,
LDNS_MAX_LINELEN , which is defined in ldns/parse.h.  If you set it to a
larger number (65535 for example) and recompile, the zone will parse.
The limit is for one RR in presentation format, so it doesn't help to
split the rdata over multiple lines either.

I do consider this a bug, and will implement a buffer that grows when
needed shortly.

-- Willem

On 15-03-19 20:52, Klaus Darilion wrote:
> It seems there is problem when parsing long TXT records.
> $ ldns-verify-zone -e P0Y0M0DT4H0M0S nxdomain.at.txt
> Syntax error, could not parse the RR at 17
> Please find the zone attached.
> regards
> Klaus
> _______________________________________________
> ldns-users mailing list
> ldns-users at nlnetlabs.nl
> https://open.nlnetlabs.nl/mailman/listinfo/ldns-users

More information about the ldns-users mailing list