Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No output created when using --ignore #102

Open
math-ematics opened this issue Jan 19, 2021 · 2 comments
Open

No output created when using --ignore #102

math-ematics opened this issue Jan 19, 2021 · 2 comments

Comments

@math-ematics
Copy link

math-ematics commented Jan 19, 2021

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
Copy link
Owner

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants