Maintained by: NLnet Labs

[Unbound-users] Accessing the values of returning queries from a python module

Gerald McNulty
Mon Feb 20 15:54:49 CET 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://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20120220/453e4d23/attachment.html>