massdns icon indicating copy to clipboard operation
massdns copied to clipboard

Output failed requests

Open nepohex opened this issue 3 years ago • 3 comments

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.

nepohex avatar Nov 12 '20 20:11 nepohex

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.

blechschmidt avatar Nov 12 '20 21:11 blechschmidt

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.

nepohex avatar Nov 12 '20 22:11 nepohex

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.

blechschmidt avatar Oct 10 '21 13:10 blechschmidt