Results 1 to 3 of 3
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 ...
- 01-26-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 2
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 67.16.94.2 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
- 01-27-2011 #2Just Joined!
- Join Date
- Mar 2007
- Location
- Bogotá, Colombia
- Posts
- 39
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
- 02-19-2011 #3Just Joined!
- Join Date
- Jan 2011
- Posts
- 2
Thank you, thatll work great for what I need.


Reply With Quote