Open clehner opened 11 years ago
Yup. There's no MX handling information, so it just goes with the naive default (TXT-style), rather than properly parsing it. The handler for it looks fairly unique. So this will require creating a new handler function, and hooking it into the record types switcher. I think that's all pretty much self-contained in record.py.
Will add a bounty on this shortly.
Bounty is $50.
http://www.freedomsponsors.org/core/issue/302/packet-problems-with-mx-records
(Copied from acceptance criteria)
Add relevant pack and unpack functions to Record class, and the necessary elif clause to Record.packtype. Use the existing code as a guide to how that works - it isn't properly documented, and this is a somewhat complex record format to implement, so I hope the bounty is sufficient.
I am running djdns-hype-flat and have DNS recursion to 8.8.8.8. pymads sometimes return malformed packets when MX records are involved.
other times I get:
and other times it works.
I haven't seen this happen with requests for A, AAAA, CNAME, TXT, or SRV records.