# 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