Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Periodically log statistics #472

Open
maxmouchet opened this issue Nov 5, 2024 · 0 comments
Open

[Feature Request] Periodically log statistics #472

maxmouchet opened this issue Nov 5, 2024 · 0 comments

Comments

@maxmouchet
Copy link

maxmouchet commented Nov 5, 2024

Describe the feature requested

It would be useful to log statistics to stderr on some interval, similar to what zmap does:

0:02 25%; send: 1 done (444 p/s avg); recv: 0 0 p/s (0 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 0.00%

I sometimes use pv for this:

cat domains.txt | zdns A | pv -l > results.json

but this is not perfect:

  • Requires an additional tool
  • Additional CPU usage
  • Only counts lines. No statistics on good/bad queries.
  • Output designed for interactive terminal usage, not logs.

Some statistics that zdns could log:

  • Queries per second
  • Success rate
    • Breakdown by DNS code?
    • Breakdown by resolver?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants