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

dig (DNS lookup)

dig <IP | FQDN>

nslookup (Nameserver lookup)

Most effective when used to look into a certain web address, e.g., rather than an IP address.

nslookup <FQDN | IP>


  • List interfaces

    ipconfig getiflist
  • Get IP address of the Mac machine on LAN

    ipconfig getifaddr en0
  • Summary of the interface

    ipconfig getsummary en0