Domain Name System

DNS: The Domain Name System

Computers communicate exclusively using numbers (IP addresses like 142.250.190.46). However, human beings are terrible at remembering random strings of numbers. We much prefer easy-to-read names like google.com.

The Domain Name System (DNS) is the massive, decentralized "phonebook" of the internet. It automatically translates human-readable domain names into machine-readable IP addresses so your browser can load internet resources.


How DNS Resolution Works

When you type www.example.com into your browser, a rapid background process occurs to find the correct IP address:

  1. DNS Cache Check: Your computer first checks its own temporary memory (cache) to see if it remembers the IP address for that website from a previous visit.
  2. DNS Resolver: If it doesn't know, it sends a query to your ISP's DNS Resolver.
  3. Root Name Server: If the Resolver doesn't know, it asks the global Root Server. The Root Server directs it to the appropriate TLD (Top-Level Domain) server (like the .com server).
  4. Authoritative Name Server: The .com server directs the request to the final Authoritative Name Server that specifically holds the records for example.com.
  5. Return: The IP address is returned to your browser, and the website loads! This all happens in milliseconds.
Browser ISP DNS Resolver 1. Root (.) 2. TLD (.com) 3. Auth Server

Common DNS Record Types

When the resolver reaches the Authoritative Name Server, it looks for specific "records". As a cybersecurity analyst, you must know these:


DNS Security Threats

Because DNS acts as the internet's signposts, manipulating it allows hackers to steal massive amounts of traffic:

To combat this, the internet is heavily moving towards DNSSEC (DNS Security Extensions), which adds cryptographic signatures to DNS records to ensure they haven't been tampered with.


Knowledge Check

?

What is the primary function of the Domain Name System (DNS)?