[Unbound-users] Using pyunbound with chaos

Chris Hills chaz at chaz6.com
Tue Jun 16 11:47:21 UTC 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




More information about the Unbound-users mailing list