Tools & Infrastructure

DNS and Domains for Beginners

The internet's phone book explained simply — how a web address like google.com turns into a number your computer can find.

Scroll to start

The Internet's Phone Book

When you type "google.com" into your browser, your computer doesn't actually know where "google.com" is. It only understands numbers — specific numeric addresses called IP addresses, like "142.250.80.46". DNS (Domain Name System) is the system that translates the name you type into the number the computer needs.

Think of it like a contact list on your phone. You tap "Mom" and your phone looks up her number. DNS works the same way — you type a name, and DNS looks up the number. Without DNS, you'd have to memorize strings of digits for every website you wanted to visit.

Domain Name

  • 🌐 Easy for humans to remember
  • ✏️ Can be changed anytime
  • 🏷️ Like a contact name in your phone
  • Example: netflix.com

IP Address

  • 🔢 What computers actually use
  • 📐 Numbers separated by dots
  • 💾 Hard for humans to memorize
  • 🖥️ Example: 45.57.99.221

DNS Is the Backbone of the Modern Web

Every single website you visit goes through a DNS lookup. It's one of the most critical pieces of internet infrastructure that most people never think about. When DNS breaks, websites disappear. When DNS is slow, the whole internet feels sluggish.

Understanding DNS helps you troubleshoot problems, set up websites, and understand how the internet actually works under the hood. It's also the reason you can change where a website points to — without changing its name. You buy a domain name, and you control where it goes by updating its DNS records.

💡 Key Insight

When you "buy a domain," you're not buying the website — you're buying the right to point that name wherever you want. The domain name is yours to control, and changing where it points takes minutes, not days.

From URL to Webpage in 5 Steps

Here's what actually happens in the few milliseconds between you pressing Enter and the page loading. It might feel instant, but a whole chain of events unfolds:

The DNS Lookup Chain
🌍
Browser
Checks its own cache first
🔍
Resolver
Your ISP's DNS resolver
🌱
Root Server
Points to the .com server
📂
TLD Server
Finds the authoritative server
Auth Server
Returns the IP address

Your browser first checks its own memory cache to see if it already knows the answer. If not, it asks your computer's operating system. If still nothing, the request goes to your ISP's DNS resolver — the server your internet provider gave you. This resolver is the start of the lookup chain.

The resolver asks a root nameserver where to find the server for ".com" domains. Root servers are the top of the DNS tree — there are only 13 sets of them worldwide. The root server says "ask this TLD (Top Level Domain) server."

The TLD server (for .com, .org, .net) knows which nameservers manage each specific domain. It points to the authoritative nameserver for the exact domain you asked about — like "google.com." That authoritative server has the final answer: the IP address.

The resolver passes the IP address back to your browser. Your browser then uses that number to actually connect to the website. The whole process usually takes 20–100 milliseconds.

What a DNS Record Looks Like

DNS records are stored as text entries that tell nameservers where to send visitors. Here's what a basic set of DNS records looks like for a fictional website — you can see these for any domain using free online tools:

DNS Zone Records
; A record — maps domain to IPv4 address
@    IN A      192.0.2.1

; AAAA record — maps domain to IPv6 address
@    IN AAAA   2001:db8::1

; CNAME record — aliases one name to another
www  IN CNAME @

; MX record — mail server for this domain
@    IN MX     mail.example.com

; TXT record — often used for verification
@    IN TXT     "v=spf1 include:_spf.example.com ~all"

The A record is the most important one — it maps your domain directly to an IP address. When you set up hosting for a new website, you'll be given an IP address and you'll add it as an A record. The CNAME record says "the www version of this site points to the same place as the root."

Knowledge Check

Test what you learned with this quick quiz.

Quick Quiz — 3 Questions

Question 1
What does DNS stand for?
Question 2
What is the role of an A record in DNS?
Question 3
Why does DNS make it easier to use the internet?
🏆

You crushed it!

Perfect score on this module.