Linux, terminal and Git

Stage 8 · Lesson 8 of 9

Network checks: DNS, ping and ports

SSH, servers and debugging

When something "cannot connect", check one layer at a time. First, does the name turn into an address? That is , the internet's phone book, and dig example.com or nslookup answers it.

Second, run a reachability check: can you reach the machine at all? Try ping, though many servers block it. Third, is a program listening on the , the numbered door a service uses?

On the server, ss -tlnp on Linux or lsof -i :3000 shows which owns a port. That also solves "address already in use". Fourth, is a blocking you?

Check ufw status and your 's security rules. Finally, curl -v tests the service itself.

Common trapguessing and changing several things at once instead of testing one layer at a time.

A question to check yourself, an AI practice session and 2 cheat sheet entries come when you add the roadmap to your account. Add it

Resources for this stage

Start with· follow one of these

Practise

Keep handy

Also worth your time

  • The server, networking and troubleshooting branches of the Linux map

Mark this stage as not done?