massdns icon indicating copy to clipboard operation
massdns copied to clipboard

No output created when using --ignore

Open math-ematics opened this issue 3 years ago • 2 comments

cat hostfile | dnsgen - | massdns -r ~/tools/massdns-1.0.0/lists/resolvers.txt --ignore NXDOMAIN --ignore SERVFAIL --ignore REFUSED -t A -o S -w resolved-hosts

This results in nothing being saved. All the OK should be in the output. massdns is running fine but nothing is being saved

I located the error to the -o S option for simple output.

math-ematics avatar Jan 19 '21 07:01 math-ematics

Does massdns show response successes for OK responses? Are you sure it has to do with the output option?

I cannot reproduce this. echo -e "some.invalid.domain\nexample.com" | ./bin/massdns -r tmp/resolvers.txt --ignore NXDOMAIN --ignore SERVFAIL --ignore REFUSED -t A -o S -w resolved-hosts works fine for me when using 8.8.8.8 as a resolver.

blechschmidt avatar Jan 19 '21 17:01 blechschmidt

I understand you're trying to ignore NXDOMAIN, SERVFAIL and REFUSED, but maybe what you really want to do is whitelist what you want instead? Via --filter NOERROR?

mzpqnxow avatar Aug 26 '21 18:08 mzpqnxow