On Fri, Jul 13, 2012 at 12:47 PM, Adam Portier <[email protected]> wrote:
> Thank you, I will try integrating this code. Could you take a few minutes > and explain how it works? Most of it I get, but where do the values "!H" > and "!HBB" come from? > > The key tag algorithm (RFC 4034 Appendix B) requires a DNSKEY RR in wire format (RFC 4034 Section 2.1). The struct.pack() takes the values from the DNSKEY object and puts them into wire format (i.e., using http://docs.python.org/library/struct.html). The following would also work: buf = StringIO.StringIO() rdata.to_wire(buf) key_str = buf.getvalue() Casey
_______________________________________________ dnspython-users mailing list [email protected] http://howl.play-bow.org/mailman/listinfo/dnspython-users
