Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 10th, 2011  |  syntax: None  |  size: 0.31 KB  |  views: 68  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data