Maintained by: NLnet Labs

[Unbound-users] Using pyunbound with chaos

Chris Hills
Tue Jun 16 13:47:21 CEST 2009


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