Sample Header Ad - 728x90

Parse results of a "dig" bulk query

0 votes
1 answer
280 views
We use a security rating service which among other things, searches the world for imposter domains that resemble our domains. So it does find some of those but also finds ones that don't exist. It finds a lot of them. * In the 5th line of a dig response, there is the term Answer: then a number. * I would like to run dig with a text file of hostnames, and for the results to be two columns only: Column 1: the hostname for that row Column 2: either Answer: x or just x, the value of Answer. So far I can run dig with a bulk input file, but can't figure out how to filter the results and get them to display like that. If anyone could point me in the right direction I'd be grateful.
Asked by JetJaguar (13 rep)
Aug 17, 2023, 02:37 AM
Last activity: Aug 17, 2023, 11:16 AM