Skip to content

Instantly share code, notes, and snippets.

@basedalexander
Last active March 9, 2018 01:25
Show Gist options
  • Save basedalexander/9005f21306ab282736460da8ba08924a to your computer and use it in GitHub Desktop.
Save basedalexander/9005f21306ab282736460da8ba08924a to your computer and use it in GitHub Desktop.
# local host maping at
/etc/hosts
# print interface config ifcoinfig
ifconfig
# check open ports
# - -t - TCP connections
# - -l - listening sockets
# - n - represent ip addresses as addresses, don't resolve the host names
netstat -tln
# checking list of dns servers
scutil --dns
nslookup example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment