Skip to content

Instantly share code, notes, and snippets.

@alvaromuir
Created January 28, 2017 23:38
Show Gist options
  • Save alvaromuir/0f3a5b12de7786635ac81347f0d1e9e3 to your computer and use it in GitHub Desktop.
Save alvaromuir/0f3a5b12de7786635ac81347f0d1e9e3 to your computer and use it in GitHub Desktop.
Get connection status of supplied domain
netstat -nat | grep `nslookup {DOMAIN} | awk '/Address/ ' | sed 's/^.*Address: //p' | tail -1` | awk '{print $6}' | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment