Course contentsShow
← Computer Science
Lesson 1502 of 2,87235. Application Layer ProtocolsFree lesson

What is DNS and Why It Exists

Understanding the Domain Name System as a distributed hierarchical database that translates human-readable domain names to IP addresses.

What is DNS and Why It Exists

What you'll learn: How the Domain Name System translates human-friendly names into machine-readable IP addresses across the internet.

The Problem DNS Solves

Computers communicate using IP addresses like 142.250.185.46, but humans struggle to remember long numerical strings. Imagine having to type 172.217.14.206 every time you wanted to visit a website instead of google.com! DNS (Domain Name System) bridges this gap by acting as the internet's phone book, automatically translating memorable domain names into the IP addresses that routers and systems actually need.

How DNS Works as a Distributed Database

DNS is a distributed hierarchical database spread across millions of servers worldwide. When you type example.com into your browser:

  1. Your computer asks a DNS resolver "What's the IP address for example.com?"
  2. The resolver queries multiple DNS servers in a hierarchy (root servers → top-level domain servers → authoritative servers)
  3. The answer comes back: "example.com is at 93.184.216.34"
  4. Your computer uses that IP address to establish a TCP or UDP connection

Think of it like asking for directions: instead of one person knowing every address in the world, you ask someone who knows who to ask, who knows who to ask, until you reach someone with the exact answer.

Why It's Hierarchical and Distributed

A single centralized database couldn't handle billions of queries per second from every internet-connected device. By distributing the workload and organizing names hierarchically (.com, .org, .edu at top levels, then subdomains below), DNS scales globally while remaining fast and resilient to failures.

Key Takeaway: DNS is the critical application-layer protocol that makes the internet usable by humans, translating domain names into IP addresses through a distributed, hierarchical system of specialized servers.