[Unbound-users] Accessing the values of returning queries from a python module
Gerald McNulty
gmnt99 at gmail.com
Mon Feb 20 14:54:49 UTC 2012
Hello,
Is there an easy way to access the values of A or CNAME or NS records from
a python module? I'd like to do something with the IP address in the A
record but after digging down into
qstate.return_msg.rep.rrsets[i].entry.data.rr_data[j], I can't see how to
turn that into an IP address (for RR_TYPE_A) or hostname (for
RR_TYPE_CNAME).
Any help would be much appreciated.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20120220/453e4d23/attachment.htm>
More information about the Unbound-users
mailing list