blechschmidt / massdns

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

Reading domains from stdin does not give any results #24

Closed aronmolnar closed 6 years ago

aronmolnar commented 6 years ago

Writing domains to a file and resolve it does give correct results:

# echo www.google.com > domains.txt
# massdns -t A -q -o S -r resolvers.txt domains.txt
www.google.com. A 108.177.14.103
www.google.com. A 108.177.14.106
www.google.com. A 108.177.14.104
www.google.com. A 108.177.14.105
www.google.com. A 108.177.14.99
www.google.com. A 108.177.14.147

Supplying the domains via stdin won't work:

# cat domains.txt | massdns  -t A -q -o S -r resolvers.txt -
In order to use multiprocessing, the domain list needs to be supplied as file.

A few weeks ago this worked. Seems to be a newly introduced bug.

blechschmidt commented 6 years ago

Thank you for reporting.

This should have been fixed by 674dfc119fa442385a3dd74d4441b3ed45f6b678.