Skip to content

Instantly share code, notes, and snippets.

@j-manu
Created November 18, 2011 10:55
Show Gist options
  • Save j-manu/1376159 to your computer and use it in GitHub Desktop.
Save j-manu/1376159 to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in "lifehacker.com" "facebook.com" "manu-j.com" "reddit.com" "tb4.fr" "bbc.co.uk"
do
for j in "4.2.2.2" "8.8.8.8" "208.67.222.222"
do
echo $j $i `dig @$j $i | grep Query | awk -F ":" '{print $2}'`
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment