Home › Linux Administration & Deployment
Need Command IP addresses / interfaces ip -br addr, ip route Listening ports and owners ss -tulpn (replaces netstat) DNS lookup dig +short example.com, resolvectl query Reachability ping -c 3 host, traceroute / mtr Test a TCP port nc -zv host 5432 HTTP requests curl -I, curl -v, curl -w '%{timetotal}' Firewall ufw (Ubuntu), firewall-cmd (RHEL), nft Capture traffic tcpdump -i any port 443 Hostname resolution order /etc/hosts, /etc/resolv.conf Debugging "the app can't connect" Is the service listening? (ss -tlnp grep 8000) On which address? 127.0.0.1 is local-only; 0.0.0.0 is all interfaces. Does DNS resolve? (dig) Is the port reachable? (nc -zv) Is a firewall / security group blocking it?