thohoh
3/6/2018 - 3:52 PM

networking

# 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