Skip to content

Instantly share code, notes, and snippets.

@alvaromuir alvaromuir/connstat
Created Jan 28, 2017

What would you like to do?
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
You can’t perform that action at this time.