Bitzu

N10-009 ยท Network troubleshooting tools

Host-side tools: nslookup, dig, ip, netstat, arp

Name resolution, interface configuration, sockets and ARP cache tools.

Key points

  • nslookup and dig query DNS (dig gives detailed records, supports @server, +short and -x for reverse lookups). ip addr / ip route / ip neigh show interface addresses, routes and the ARP/neighbor cache on Linux (ipconfig is the Windows equivalent for addresses). netstat lists sockets, listening ports and, with -o on Windows, the owning PID. arp -a shows IP-to-MAC entries.

Source: https://man7.org/linux/man-pages/man8/ip.8.html

Practice questions

Single choice

Which Windows command shows listening ports together with the process ID that owns each one?

  1. arp -a
  2. nslookup -o
  3. netstat -ano
  4. tracert -p
Show answer

Answer: C. netstat -ano

netstat -a lists listening ports and -o adds the owning PID; -n keeps everything numeric. arp and nslookup do not list sockets.

Select all that apply

Which Linux 'ip' objects return the information described?

  1. ip addr: addresses assigned to interfaces
  2. ip route: the routing table
  3. ip neigh: the ARP/neighbor cache
  4. ip dns: configured resolvers
  5. ip ports: listening sockets
Show answer

Answer: A. ip addr: addresses assigned to interfaces, B. ip route: the routing table, C. ip neigh: the ARP/neighbor cache

'ip addr' lists interface addresses, 'ip route' the routing table and 'ip neigh' the ARP/neighbor cache. There is no 'ip dns' or 'ip ports' object.

True or false

True or false: 'arp -a' displays the contents of the host's DNS cache.

Show answer

Answer: False

False. arp -a shows the IP-to-MAC mappings the host learned on the local segment. The DNS cache is shown with ipconfig /displaydns on Windows.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More N10-009 topics in this module