dns resolver tool

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

I got a file with like 2000 ip addresses. one ip on each line. Is there a
dns resolver tool to get me the Full DNS name of this file?
 
You can do something like this with my NetDig tool at www.mvptools.com. You
could also probably do it with nslookup, but did not try it. In your
IPs.txt text file, add "set do" to the first line and "exit" as the last
line. Make sure your IP addresses start in first char pos. Then just Pipe
your file into NetDig in interactive mode like below.
ips.txt File
<TOF> // Do not type this.
set do
192.168.0.221
192.168.0.2
....<More IPS>...
9.9.9.9
1.1.1.1
exit
<EOF> // Do not type this.

C:\Temp>type ips.txt | netdig -i > out.txt

Then just use something like find to clean up the non-Ptr stuff. You may
need to clean more up, but this will get you close I think.
C:\Temp>type out.txt | find "PTR"

Cheers!
 
&lt;EOF&gt; // Do not type this.

C:\Temp&gt;type ips.txt | netdig -i &gt; out.txt
I find the phrase "do not type" quite ironic.  (-:
 
Back
Top