blechschmidt / massdns

A high-performance DNS stub resolver for bulk lookups and reconnaissance (subdomain enumeration)
GNU General Public License v3.0
3.08k stars 460 forks source link

No output created when using --ignore #102

Open math-ematics opened 3 years ago

math-ematics commented 3 years ago

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.

blechschmidt commented 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.

mzpqnxow commented 2 years ago

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?