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

Output failed requests #85

Open nepohex opened 3 years ago

nepohex commented 3 years ago

Hi! Thank you for awesome tool! I cant find the way how to output only failed requests in any way. Using any --filter or output of Full or Short doesnt include totally failed requests, which are very important.

blechschmidt commented 3 years ago

I am not sure if this is what you are looking for, but you can use --retry never. Then, packets with any response code are printed. However, there is currently no option to print the requests that timed out, i.e. those for which no resolver returned an acceptable response.

nepohex commented 3 years ago

I am not sure if this is what you are looking for, but you can use --retry never. Then, packets with any response code are printed. However, there is currently no option to print the requests that timed out, i.e. those for which no resolver returned an acceptable response.

Returns same answer, only successed. There are big problem with it, when I need to scrape some domains, I dont know which requests are failed (banned dns or any other issue), so i get only success requests responses.

Now I'm manually filter output after executing, comparing with input file, getting lines which failed and than start script again and again until getting 100% success response. Thats pain.

blechschmidt commented 2 years ago

For JSON, this is implemented by the e output format option. (cf60a8e78ea65398be9e7da88db3d953d99263e9)

I plan to add this feature to the binary and full output modes as well and will leave the issue open until it has been implemented for both modes.