Code Monkey home page Code Monkey logo

Comments (6)

Tantalor93 avatar Tantalor93 commented on August 10, 2024

Hello @PenelopeFudd 🙂
thanks for suggesting this enhancement, I think this enhancement makes sense and I like your suggestion to introduce a new flag --fail that will configure conditions upon which the dnspyre will exit with non-zero status

I can image supporting these conditions:

  • ioerror = dnspyre exits with a non-zero status code if there is at least 1 IO error (dnspyre failed to send DNS request or receive DNS response)
  • negative = dnspyre exits with a non-zero status code if there is at least 1 negative DNS answer (NXDOMAIN or NODATA response)
  • error = dnspyre exits with a non-zero status code if there is at least 1 error DNS response (SERVFAIL, FORMERR, REFUSED, etc.)
  • idmismatch = dnspyre exits with a non-zero status code if there is at least 1 ID mismatch between DNS request and response

and I will allow users to specify any combination of these conditions (like dnspyre --fail=ioerror,error google.com)

do you think this makes sense @PenelopeFudd?

This looks like the best DNS benchmarking program out there!

Thanks, glad to hear that 🙂

from dnspyre.

PenelopeFudd avatar PenelopeFudd commented on August 10, 2024

Yes, that's exactly it, thank you!

from dnspyre.

Tantalor93 avatar Tantalor93 commented on August 10, 2024

Hello @PenelopeFudd, I have released a new version v3.1.0 of dnspyre, that now supports --fail flag, you can check the documentation https://tantalor93.github.io/dnspyre/failoncondition.html for usage, hope it fits your use case! Thank you!

from dnspyre.

PenelopeFudd avatar PenelopeFudd commented on August 10, 2024

Er, one more request: --fail any, if any kind of error is found? Otherwise it's rather long to specify --fail ioerror --fail error --fail negative --fail idmismatch.

from dnspyre.

Tantalor93 avatar Tantalor93 commented on August 10, 2024

hmm, I understand, that it can be a little bit tedious to list all the conditions.

I am struggling with the semantics of such option any, it can be interpreted in many ways. Should it fail if there is any IOerror and DNS error, or should it also fail when there is a negative answer ? Negative answers usually are not a problem of the server but of the client asking for something that does not exist. Should truncated answers be considered also under the any option?

from dnspyre.

PenelopeFudd avatar PenelopeFudd commented on August 10, 2024

It's true that it could be interpreted in many ways, although I was thinking of the basic "any of the errors that could be specified with --fail", as a way to see if everything is perfect or not. If I start looking into negative or truncated answers, then it'd be time to explicitly list what counts as an error.

from dnspyre.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.