dns resolver tool

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?
 
W

William Stacey [MVP]

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!
 
J

Jonathan de Boyne Pollard

&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.  (-:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top