Skip to content

Network Diagnosis

Commands

  • nslookup: to perform a DNS lookup

    $ nslookup google.com    
    
    * netstat: to get statistics for network ports and shows port availability

    # to list all TCP ports
    $ netstat -at
    
    * traceroute: to track the route that packets take to reach a destination on a TCP/IP network

    $ sudo traceroute -T www.google.com