Open math-ematics opened 3 years ago
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.
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
?
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.