libunbound python DNSSEC example - first character in TXT records

nusenu nusenu-lists at
Mon Nov 8 23:27:30 UTC 2021

nusenu via Unbound-users:
> I found the answer to this question in this section of the RFC:
>> RDLENGTH        an unsigned 16 bit integer that specifies the length in
>>                 octets of the RDATA field.
> so I assume as_raw_data() returns RDLENGTH and RDATA, but 2 bytes would be the first 2 chars
> not just the first char?

ok a final correction: TXT length is a single byte and not in RFC1035 but in

>    The format of each constituent string within the DNS TXT record is a
>    single length byte, followed by 0-255 bytes of text data.
sorry for the noise about the length.

kind regards,

More information about the Unbound-users mailing list