[Unbound-users] Using pyunbound with chaos
W.C.A. Wijngaards
wouter at NLnetLabs.nl
Tue Jun 16 12:37:26 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Chris,
if you print result.rcode you can see it has rcode=5 (REFUSED).
This is because your unbound resolver does not have any means to contact
DNS servers in the chaos class. The forward config you set with set_fwd
is for class IN.
Best regards,
Wouter
Chris Hills wrote:
> 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAko3kgYACgkQkDLqNwOhpPhruACbBphSZ6im7XU7mKkya12A438s
ATkAn22rnVpDt/JeR9G5kFXnp9D23nT9
=Q2Yc
-----END PGP SIGNATURE-----
More information about the Unbound-users
mailing list