Skip to content
Guest
Learn Linux · Course Syllabus Show lessons
Server Administration · 8 min read · Beginner

Networking Debugging: curl, dig & ss

Verify DNS records with dig, inspect HTTP/TLS headers with curl -sI, and check listening ports with ss -tulpn.

What you'll learn

  • Verify DNS A/CNAME propagation quickly using dig +short
  • Inspect HTTP status codes and redirects with curl -sI
  • Send JSON POST payloads cleanly with curl -X POST -H -d

When launching a domain or debugging an API outage, three CLI tools save hours:

  • dig +short devpath.jpsoriano.dev confirms which IP address DNS resolves to.
  • curl -sI https://devpath.jpsoriano.dev prints only the HTTP status and response headers (200 OK, 301, cache headers).
  • ss -tulpn lists every TCP/UDP port currently listening on the server and which process owns it.

Fill-in-the-Blank Exercise

DNS & HTTP Header Check

Resolve a domain's IP with dig +short and fetch only headers with curl -sI.

 +short devpath.jpsoriano.dev
 -sI https://devpath.jpsoriano.dev

Live Bash Lab

Bashnet_tools.sh
Expected OutputClick “Run Live” to compile with GNU Bash
# Check DNS A record
dig +short devpath.jpsoriano.dev

# Check HTTPS status & headers
curl -sI https://devpath.jpsoriano.dev | head -n 5

# Check listening ports on server
ss -tulpn

Check Your Understanding

Score: 0 / 1

1. What does the -I flag do in curl -sI https://example.com?

Study Workspace

Finished this lesson?

Your progress is saved locally in your browser, no account needed.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind