Mandrew

DNS Lookup Command (Bash, unfinished)

Jul 12th, 2012
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2. result=`nslookup gamestats2.gs.nintendowifi.net 88.191.118.153 | grep -c "88.191.118.153"`;
  3. echo $result;
  4.  
  5. if [ $RESULT==2 ]; then
  6.  echo "You should be able to use Pokecheck on this connection";
  7. else
  8.  echo "Your ISP is blocking Pokécheck's DNS.";
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment