Resolving Mass IPs
I have a large list of IPs that I need to lookup and get the resolved hostname for, its from an .htaccess file thats become outdated with time. As an example, one of them is 188.8.131.52 which returns smtp.gigablast.com .
Is there a quicker / easier way to resolve the ip to hostname rather than my current method? Right now its either manually entering each one in dnsstuff.com or using dig -x ip and theres several thousand to go. Thanks
Well, if you have a file with all the addresses in each line, you could run a little loop to seek each address:
cat youriplist.txt | while read IP ; do nslookup $IP ; done
Thank you, thatll work great for what I need.