« SA Lisa On-boarding process - completed! | Main | SA Lisa Team communications standards, complete... »

June 12, 2012

DNS / IP Address Script for WordPress Blogs

(Note: this allows us to pull IP addresses from DNS names...)

#! /bin/bash
for line in `cat ./IP_List1.txt`
do
echo "Looking up server IP of $line"
host "$line"|grep 'address'|cut -d ' ' -f4 >> ServerIP.txt
echo "$line `host $line|grep 'address'|cut -d ' ' -f4`" >> DNSIP.txt
done

Posted by jlwalsh at June 12, 2012 03:09 PM

Comments

Login to leave a comment. Create a new account.