Network Operations
Information Query
traceroute (Trace packets route)
-
Default and simple
traceroute/tracert <IP | FQDN> -
Specify max number of hops
traceroute -m <int> <IP | FQDN> -
Example
traceroute -m 42069 google.com
dig (DNS lookup)
dig <IP | FQDN>
nslookup (Nameserver lookup)
Most effective when used to look into a certain web address, e.g. google.com, rather than an IP address.
nslookup <FQDN | IP>
ip/ipconfig/ifconfig
-
List interfaces
ipconfig getiflist -
Get IP address of the Mac machine on LAN
ipconfig getifaddr en0 -
Summary of the interface
ipconfig getsummary en0