NLnetLabs / ldns

LDNS is a DNS library that facilitates DNS tool programming
https://nlnetlabs.nl/ldns
BSD 3-Clause "New" or "Revised" License
280 stars 95 forks source link

RFC8427 (JSON) output format for ldns/drill ? #175

Open hmh opened 2 years ago

hmh commented 2 years ago

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...

wtoorop commented 1 year ago

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

hmh commented 1 year ago

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...