libunbound python DNSSEC example - first character in TXT records

nusenu nusenu-lists at
Mon Nov 8 23:07:58 UTC 2021

> Is there something special about the first character of a TXT record
> that one needs to consider when using as_raw_data() or is this a bug?

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?

This question is still relevant:

> and a second question:
> Is there any way I can tell the unbound module to use TCP for queries and use a SOCKS proxy?
> similar to this:

kind regards,


More information about the Unbound-users mailing list