Maintained by: NLnet Labs

[Unbound-users] Responses from pythonmodule back into iterator?

Jan-Piet Mens
Wed Aug 10 20:18:05 CEST 2011


I'm playing with the Python module in Unbound 1.4.12 and have replaced
the RR in example2 [1] to read

        msg.answer.append("%s 10 IN CNAME" % qstate.qinfo.qname_str)

Unbound replies to a query thusly:

        dig @ foo.localdomain any
        ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

        ;; ANSWER SECTION:
        foo.localdomain.        10      IN      CNAME

What must I do to instruct the module it should pass that response back
into the iterator to resolve `' to its A RR(set)? Or am I
barking up the wrong tree?