Hands-on Lab

#Lab: Networking Fundamentals

Practice networking concepts.

#🎯 Objectives

  • DNS lookup
  • HTTP debugging
  • SSL/TLS verification

#Task 1: DNS Investigation

bash
1# Basic lookup
2nslookup google.com
3dig google.com
4
5# Get all records
6dig google.com ANY
7
8# Trace resolution
9dig +trace google.com
10
11# Check specific record types
12dig google.com MX
13dig google.com TXT

#Task 2: HTTP Debugging

bash
1# View headers
2curl -I https://httpbin.org/get
3
4# Full request/response
5curl -v https://httpbin.org/get
6
7# POST with data
8curl -X POST -d '{"key":"value"}' \
9  -H "Content-Type: application/json" \
10  https://httpbin.org/post
11
12# Follow redirects
13curl -L https://httpbin.org/redirect/3

#Task 3: SSL/TLS Verification

bash
1# Check certificate
2openssl s_client -connect google.com:443
3
4# View certificate details
5echo | openssl s_client -connect google.com:443 2>/dev/null | \
6  openssl x509 -noout -text
7
8# Check expiration
9echo | openssl s_client -connect google.com:443 2>/dev/null | \
10  openssl x509 -noout -dates

#✅ Success Criteria

  • DNS queries return results
  • HTTP headers understood
  • Certificate info retrieved