SHARE
TWEET

Untitled

a guest Dec 10th, 2011 70 Never
  1. #!/bin/sh
  2.  
  3. for i in "mail.gmail.com" "google.com" "facebook.com" "slashdot.org"  "www.ted.com" "www.cnn.com" "www.thestar.com.my" "www.nst.com.my" "www.maybank2u.com.my" "www.malaysiacrime.com"
  4. do
  5.   for j in "8.8.8.8" "202.188.0.133"
  6.   do
  7.     echo $j $i `dig @$j $i | grep Query | awk -F ":" '{print $2}'`
  8.   done
  9. done
RAW Paste Data
Top