Topic 26

Names and Addresses: DNS and Domains

Concept

Every device on a network has a numeric address — a series of numbers that identifies it precisely. When computers talk to each other, they use those numbers. But people don't type numbers into their browsers; they type names like "example.com" or "mycompany.org". Something has to bridge the gap. That something is DNS — the Domain Name System.

DNS is the internet's phone book. When you tap a contact name on your phone, the phone dials the number behind it — you never have to remember the digits. DNS works the same way: you type a name, and DNS silently looks up the numeric address behind it, then your browser connects to that address. The whole lookup happens in milliseconds, and you never see it.

In the cloud, DNS is not just an internet utility — it's the mechanism by which your services get stable, human-friendly names that can point at any server you choose, and be changed at any time without users noticing.

IP Addresses: The Numbers Underneath

An IP address is the numeric label assigned to every device connected to a network. A typical address looks something like 198.51.100.42 — four groups of numbers separated by dots. When your browser connects to a website, it ultimately connects to an IP address like that one. There are billions of devices on the internet, and each has (or shares) a unique address so traffic reaches the right destination. Remembering those numbers for every site would be impossible, which is why names exist.

Domain Names: The Human-Friendly Layer

A domain name — like "bbc.com" or "wikipedia.org" — is a readable label that points to one or more IP addresses. Domain names are registered through a registrar and managed through a system of records that say "this name maps to this address". The name itself is not a server; it's a pointer. The address it points to can be changed, which is why a company can move its website to new servers without changing the name anyone types.

How DNS Works

When you type a domain name into your browser, your computer contacts a DNS resolver — usually one run by your internet provider or a public service. The resolver works its way through a hierarchy of DNS servers to find the authoritative answer: what IP address does this name map to right now? The answer comes back in milliseconds, your browser connects, and the page starts loading. You saw none of this — DNS runs invisibly in the background every time you visit anything online.

One important detail: DNS changes are not instant. When you update a DNS record — say, pointing a domain to a new server — the change takes time to propagate through the resolver network. This can take anywhere from a few minutes to a few hours, depending on how long resolvers are allowed to cache the old answer. Engineers plan for this; it's not a bug, it's how the system works.

DNS in the Cloud

Cloud providers offer managed DNS services that let you create and update DNS records for your own domains from within your cloud account. This is how a company gives its services readable names — "api.mycompany.com" pointing to a load balancer, "admin.mycompany.com" pointing to an internal tool — and updates those pointers as infrastructure changes. AWS's service is called Route 53; Google Cloud's is Cloud DNS; Azure's is Azure DNS. The concept is the same across all three: a managed, programmable phone book that stays in sync with your cloud resources.

What happens when you type a domain name
You type a namee.g. "example.com"
DNS lookupname → address
Address returnede.g. 198.51.100.42
Browser connectspage loads
Three cloudsAWS Route 53Google Cloud Cloud DNSAzure Azure DNS
Common Confusions
  • "The domain name is the server." The name is a pointer, not the server itself. The same domain name can point to completely different servers over time — the name stays the same while what's behind it can change freely.
  • "DNS changes take effect immediately." They don't. DNS updates propagate through a network of resolvers that each cache the old answer for a period of time. Plan for propagation delays of minutes to hours when making DNS changes.
  • "DNS is only for websites." DNS names all kinds of services — email, APIs, internal tools, databases, anything that needs a human-readable address. If a service has a name people use to reach it, DNS is involved.
  • "The IP address is all I need — I can skip DNS." IP addresses change when you move servers, scale up, or switch providers. A domain name stays constant and lets you repoint it whenever needed. Hard-coding an IP address is fragile; using a name is dependable.
Why It Matters
  • DNS sits in front of every online service. Understanding it explains why "changing Route 53" can silently move traffic from one server to another — and why that takes planning.
  • "Route 53", "a DNS record", and "propagation delay" are phrases that appear in almost every deployment conversation. This topic gives you the mental model to follow along.
  • In the cloud, DNS records are how you wire things together — load balancers, CDNs, and individual services all get their names through DNS, making it the directory of your entire system.

Knowledge Check

What does DNS do?

  • Translates a domain name into a numeric IP address
  • Registers and sells domain names to buyers
  • Stores the files and pages that make up a website
  • Encrypts traffic traveling between your browser and a server

You type "example.com" into your browser. Which sequence correctly describes what happens?

  • Your browser searches the whole web until it finds the matching site
  • Your computer already has the address stored locally so DNS is skipped
  • Your browser asks DNS for the IP address, gets it, then connects
  • The domain name travels through the internet until it finds the matching server

Why is a domain name described as a "pointer" rather than the server itself?

  • It maps to an address that can be changed at any time
  • It is a temporary label that expires after a short time
  • It is only readable by machines, not by people
  • It is locked to exactly one physical server, permanently

You got correct