[Unbound-users] Using pyunbound with chaos
Chris Hills
chaz at chaz6.com
Tue Jun 16 12:33:44 UTC 2009
On 16/06/09 13:47, Chris Hills wrote:
> Hi
>
> The command `dig +short @::1 version.bind. chaos txt` outputs "9.6.1".
> The following python script however outputs "None":-
>
> import unbound
> ctx = unbound.ub_ctx()
> ctx.set_fwd("::1")
> status, result = ctx.resolve("version.bind", unbound.RR_TYPE_TXT,
> unbound.RR_CLASS_CH)
> print result.rawdata
>
> I am using Unbound 1.3.0 on GNU/Linux with Python 2.5.2.
>
> Regards,
>
> Chris
Just to clarify, dig gives the output I expect, wheras pyunbound does
not return any result whatsoever.
More information about the Unbound-users
mailing list