Advertisement
Guest User

Untitled

a guest
May 29th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. function rdns() {
  2. IP=`dig +short $1`
  3. if [[ -n $IP ]]; then
  4. echo -n "$IP -> "
  5. dig +short -x $IP
  6. whois -Q $IP | grep Organization
  7. else
  8. echo Not found
  9. fi
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement