Skip to content

Instantly share code, notes, and snippets.

@jonatasrenan
Created September 26, 2017 13:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jonatasrenan/8c1b4936d2115a56bedaab1a9dd21238 to your computer and use it in GitHub Desktop.
DNS reverse
rev=$(host $1 | rev | cut -d' ' -f1 | cut -d'.' -f2- | rev)
echo $1 $rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment