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
Which Windows command shows listening ports together with the process ID that owns each one?
- arp -a
- nslookup -o
- netstat -ano
- 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.
Which Linux 'ip' objects return the information described?
- ip addr: addresses assigned to interfaces
- ip route: the routing table
- ip neigh: the ARP/neighbor cache
- ip dns: configured resolvers
- 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: '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.
