Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
URI record type is incorrectly serialized/deserialized #5443
PowerDNS incorrectly serializes/deserializes
Steps to reproduce
function preresolve(dq) dq.rcode = pdns.NOERROR dq:addAnswer(pdns.URI, '1 1 "http://example.com"', 300) return true end
The answer section should include a URI record with the same
The priority and weight values are wrong, and the URI is truncated by two characters.
The root cause is that PDNS uses 8-bit integers for the Priority and Weight fields of the
I have linked the (I presume) relevant PDNS source and RFC document specifying the URI record format.