[Unbound-users] Using pyunbound with chaos
W.C.A. Wijngaards
wouter at NLnetLabs.nl
Tue Jun 16 13:46:44 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Chris,
Chris Hills wrote:
> Wouter
>
> I am using the unbound library, but not the server.
right
> I think you misunderstand my objective.
Tell me more :-)
> Whilst the normal operation of DNS is to discover a record recursively,
> there are some special records that are not part of the normal hierarchy
> and exist uniquely on each DNS server - for example, version.bind.,
> version.server., hostname.bind. and id.server. (all chaos txt).
> Basically, I am trying to find the python code using pyunbound that does
> the equivalent the following command:-
>
> dig @[dns-server] version.server. chaos txt
Unbound can do this sort of thing, as a server with root hints for class
chaos. However, the config syntax and libunbound functions all have a
default of class IN, and there is no way that I see to tell libunbound
where to send queries for class CHAOS.
> This will return the version of the software that is running on the dns
> server.
Or, well, whatever the operator configured, see the unbound options
'version' and 'hide-version'.
Perhaps you want this piece of python? :
(cin, cout) = os.popen2("dig @" + dnsserver + " version.bind chaos txt")
result = cout.readlines()
cin.close()
cout.close()
print result
Best regards,
Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAko3okQACgkQkDLqNwOhpPjuWACcDoZRgkRmKneJT4WV7E5F/nKW
H14An1TvKNBkuc0K/nSN6VhsaGixkLAT
=Z8XK
-----END PGP SIGNATURE-----
More information about the Unbound-users
mailing list