1. What is DNS?


2. How DNS Works (Step by Step)

When you type www.example.com:

  1. Browser/OS cache → Checks if it already knows the IP.
  2. DNS Resolver (usually your ISP or 8.8.8.8) → Starts the query.
  3. Root DNS Server → Says: “I don’t know, but .com servers do.”
  4. TLD Server (.com) → Says: “Ask the authoritative server for example.com.”
  5. Authoritative DNS Server → Responds with the final IP address.
  6. Browser connects to that IP.

3. DNS Record Types (Important for Pentesting)