Question : Converting IPs to a domain and location

I have a list of around 1000 IP addresses that were provided by our networking team.  These were attempted attacks on our network.  My manager has asked me to provide (1) the addresses for which these IPs are assigned (e.g. www.somebody.com) as well as (2) the country they originate from.  Does anyone have a script to do this?  I have the complete list of IPs in a single column in Excel.

Answer : Converting IPs to a domain and location

@sanderson321 -- I did some research and I really cannot find a way via a shell script to determine how to find out where an IP address is registered in which country. I did, however, find a site that allows you to enter the range of IPs and then try to do a 'lookup':

MULTIPLE IP ADDRESS LOOKUP -- http://software77.net/geo-ip/multi-lookup/

---

@mplungjan -- Honestly, I highly doubt your going to find an API that does nslookup or whois checks as these are standard applications found on UNIX/Linux platforms.
Random Solutions  
 
programming4us programming4us