[ldns-users] oxffffffff in dns records cause a syntax error in ldns-read-zone

Miek Gieben miek at miek.nl
Tue Jan 11 19:13:05 UTC 2011


[ Quoting Paul Wouters in "Re: [ldns-users] oxffffffff in dns "... ]
> Below are 4 records. the middle two fail.
> 
> 9z8m9432.xxxx.xx.xxx.com. 3600	IN	A	10.xx.xx.55
> \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255.xxxx.xx.xxx.com. 3600 IN TXT "3188a04aecf2e812b6d4a95e6c13ee563f"
> \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255.xxxx.xx.xxx.com. 3600 IN A	10.xx.xx.31
> b28m9435.xxxx.xx.xxx.com. 3600	IN	TXT	"31ddf5714dd59e9d6d385fd839c86dd044"

ldns decides the records are too long:
(59 x \255)

\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255.xxxx.xx.xxx.com.
3600    IN  TXT "3188a04aecf2e812b6d4a95e6c13ee563f"

works, 1 more doesn't:
(60 x \255)

\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255.xxxx.xx.xxx.com.
3600 IN TXT "3188a04aecf2e812b6d4a95e6c13ee563f"


> Note that, like reported before I think the line number reported is off
> by one :)

I see that too, but ONLY if I have an empty line after the line
containing the error:

Syntax error, could not parse the RR at 4

9z8m9432.xxxx.xx.xxx.com. 86400 IN  SOA elektron.atoom.net. miekg.atoom.net.  2009032802 21600 7200 604800 3600
9z8m9432.xxxx.xx.xxx.com. 3600  IN      A       10.5.3.55
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255.xxxx.xx.xxx.com. 3600 IN TXT "3188a04aecf2e812b6d4a95e6c13ee563f"

b28m9435.xxxx.xx.xxx.com. 3600  IN      TXT "31ddf5714dd59e9d6d385fd839c86dd044"

Removing the empty line:
Syntax error, could not parse the RR at 3

(all done with ldns-1.6.4)

grtz,

--
 Miek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/ldns-users/attachments/20110111/68d8ea11/attachment.bin>


More information about the ldns-users mailing list