Skip to content

Instantly share code, notes, and snippets.

@timendum
Created July 27, 2011 10:08
Show Gist options
  • Select an option

  • Save timendum/1109065 to your computer and use it in GitHub Desktop.

Select an option

Save timendum/1109065 to your computer and use it in GitHub Desktop.
Check hosting [ bash dns ]
# one line response
whois `host $DOMAIN | grep "has address" | head -n 1 | sed 's/.* address //'` | grep desc | head -n 1 | sed 's/.*: *//'
# detail
whois `host $DOMAIN | grep "has address" | head -n 1 | sed 's/.* address //'` | grep desc | sed 's/.*: *//'
# full detail
whois `host $DOMAIN | grep "has address" | head -n 1 | sed 's/.* address //'`
#ps: check for mirrors:
host $DOMAIN | grep "has address"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment