ldns icon indicating copy to clipboard operation
ldns copied to clipboard

RFC8427 (JSON) output format for ldns/drill ?

Open hmh opened this issue 3 years ago • 2 comments

Would there be interest in patches to add a RFC8427 output mode to ldns, and to drill? As in: if someone else does the work, would it be accepted for merging into ldns/drill ?

If the answer is "yes", I can try to propose this to my manager...

Note that any such support would likely require adding a json output library (probably json-c), as a dependency, though. The whole thing would be optional (i.e. json lib not available, or feature not requested in build would cause the json-format code and dependencies to be ignored during build).

Currently, we're parsing dig/drill output to get structured data out of it, but that's... annoying to say the least. Getting proper structured output right out of the tool would be better. getdns has something like this, but it is way too heavy and predates RFC8427, so it is non-standard and uninteresting for our purposes...

hmh avatar Apr 29 '22 12:04 hmh

@hmh Yes we'd be interested. Awaiting you PR ;)

wtoorop avatar Jul 12 '22 13:07 wtoorop

Hah, I will propose it to my managers, let's see what their reply is. Might take quite a while, though, but at least your reply makes it a real possibility...

hmh avatar Jul 12 '22 18:07 hmh