libunbound python DNSSEC example - first character in TXT records

nusenu nusenu-lists at riseup.net
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:
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?

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:
> https://stackoverflow.com/questions/5148589/python-urllib-over-tor

kind regards,
nusenu



-- 
https://nusenu.github.io


More information about the Unbound-users mailing list