libunbound python DNSSEC example - first character in TXT records

nusenu nusenu-lists at riseup.net
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:
> https://datatracker.ietf.org/doc/html/rfc1035#section-4.1.3
> 
>> 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
https://datatracker.ietf.org/doc/html/rfc6763#section-6.1

>    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,
nusenu


More information about the Unbound-users mailing list