blechschmidt / massdns

A high-performance DNS stub resolver for bulk lookups and reconnaissance (subdomain enumeration)
GNU General Public License v3.0
3.08k stars 460 forks source link

Real-time stderr update as single JSON line rather than free text lines w/ANSI escape ccodes? #58

Closed mzpqnxow closed 4 years ago

mzpqnxow commented 4 years ago

It would be useful in some cases to monitor the status of massdns in real-time programmatically. Currently, the only good way to do this is with regular expressions, and this can be painful and expensive because of the ansi escape codes and the cost of executing regex compares

Would you accept a PR that adds a flag for the status output to be a single line of JSON?

mzpqnxow commented 4 years ago

I opened PR #59 in case this is an acceptable feature. It is pretty non-invasive and does not change the default behavior.

Note #59 also has an update for the README not related to this feature. It's just an update missing when you went from .2 -> .3 I think, when the usage changed significantly

blechschmidt commented 4 years ago

Thank you very much for contributing. The PR has been merged.