Re: AXFR from Bind oddities

John Levine <[email protected]> 12 Apr 2010 16:25:44 -0000
Newsgroups gmane.network.djbdns
Message-ID <[email protected]>
>Example,
>:djgusa.com:16:Zv\075spf1 <snip>
>Why is the "Z" in "16:Zv"?
>
>:djgusa.com:16:\136spf2.0 <snip>
>Why is the "\136" in "16:\136spf2"?

They're the length byte at the start of the text field.  They
belong there.

The axfr-get program only knows how to format SOA, NS, CNAME,
PTR, MX, and A records.  Everything else is written out using
the generic colon record type with an explicit record type and
the literal record contents, which for a TXT record includes the
length byte before each text string.

It wouldn't be hard to add a few lines to axfr-get.c to format
txt records, but there would be no benefit I can see.

R's,
John