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

Json stderr #59

Closed mzpqnxow closed 4 years ago

mzpqnxow commented 4 years ago

This PR has two things:

  1. Addition of --status-format {ansi, json} as an optional argument. This provides the user an option of having a single line of JSON output at every tick as opposed to the default behavior which is a very readable human oriented format with ansi terminal escapes. Useful if monitoring massdns programmatically over a long run
  2. Updated the README.md to show the current output of the massdns help screen. It looks like it did not get updated after v0.2

This change should not affect any users. If the argument is not provided, it defaults to the current ansi-style format string.

Please let me know if you have issues with the implementation or style.

Thanks, excellent tool. By the way, any plans in the future to split it out into a sender/receiver thread to see if you can squeeze out some better performance?

blechschmidt commented 4 years ago

Currently, there are no plans to split it into a sender/receiver thread.