Ch11.10.2: DNS (Domain Name System)

DNS is the phonebook of the Internet. It translates human-readable domain names (like example.com) into IP addresses (like 93.184.216.34) that computers use to identify each other.

How DNS Works

  1. Your application asks the OS to resolve example.com
  2. The OS queries a DNS resolver (often your ISP’s or a public one like 8.8.8.8)
  3. The resolver checks its cache; if not found, it queries root servers, then TLD servers, then authoritative servers
  4. The resolver returns the IP address to your application
  5. Your application connects to the IP address

Record Types

DNS over HTTPS (DoH) and DNS over TLS (DoT)

Traditional DNS queries are sent in plaintext over UDP port 53, which can be intercepted or manipulated. Modern secure alternatives:

These protocols prevent eavesdropping, man-in-the-middle attacks, and DNS spoofing. They are increasingly supported by browsers and operating systems.