Essential System Networking
An app server has gone unreachable thanks to a bad hosts entry. Inspect interfaces and listening ports, repair name resolution, and verify the service end to end.
- Beginner
- 45 min
- Linux
- Networking
- DNS
- Troubleshooting
Overview
An application server that worked yesterday is suddenly unreachable, and the only clue is a teammate muttering about 'a bad hosts entry'. This is the most common kind of outage there is: nothing is actually broken — something is merely misconfigured.
You'll work the problem the way a network engineer does: from your own interfaces outward. Inspect your IP addresses and listening sockets, watch name resolution fail, trace it down to /etc/hosts, fix it, then prove the fix end to end with ping, curl, and a raw TCP probe. By the end you'll have a repeatable mental checklist for 'why can't this box reach that one?'
What you will learn
- Inspect interfaces and addresses with
ip addr - List listening sockets and their owning processes with
ss -tlnp - Diagnose name resolution using
getentand/etc/hosts - Verify connectivity at each layer: ICMP, HTTP, and a raw TCP port test
Before you start
- Comfortable in a Linux shell with
sudo - A rough idea of what an IP address and a TCP port are
- Files, Permissions & Ownership first is helpful, but not required
Tasks
- 01Identify your machine's IP address
- 02Find what's listening on port 7681
- 03Diagnose the unreachable app server
- 04Verify connectivity
- 05Fetch the web service
- 06Probe a remote port