Comments (6)
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.
Yes, that's exactly it, thank you!
from dnspyre.
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.
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.
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.
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)
- DoH support HOT 1
- Insecure self signed certificates HOT 5
- Cannot check limit of number of files HOT 2
- JSON output flag for using programatically HOT 3
- Can't connect to a url to get list HOT 2
- Support benchmarking with DNSSEC HOT 1
- Changed Server Certificate Validation for DoT in dnspyre v2.19.0+? HOT 2
- Keepalive on/off ? HOT 11
- TSIG support? HOT 1
- Using multiple source ips?
- Adding ECS support, like dig's `+subnet=x.x.x.x/yy` option HOT 1
- Packets lost before sending HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnspyre.