Skip to content

Instantly share code, notes, and snippets.

@virullius
Created January 8, 2015 17:30
Show Gist options
  • Save virullius/e5978976c751365f5a59 to your computer and use it in GitHub Desktop.
Save virullius/e5978976c751365f5a59 to your computer and use it in GitHub Desktop.
lookup other host names for a given hostname - via PTR records
host $(host $THE_DNSNAME | awk -F ' ' '{print $4}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment