Skip to content

Instantly share code, notes, and snippets.

@Momus
Last active December 11, 2015 21:28
Show Gist options
  • Save Momus/4662106 to your computer and use it in GitHub Desktop.
Save Momus/4662106 to your computer and use it in GitHub Desktop.
reverse DNS on a hostname
whois `ping -c 1 google.com | awk '/icmp/{sub(":" , "" , $4) ; print $4}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment