Tools & Infrastructure

DNS and Domains for Beginners

What Happens When You Type a URL

Scroll to start

The Internet's Phone Book

When you type "google.com" into your browser, your computer doesn't actually know where Google lives. It only knows names — and servers only know numbers (called IP addresses, like 142.250.80.46). DNS is what bridges the gap. It translates the name you type into the number the computer needs to find the right server.

Think of it like a phone book. You look up "John's Bakery" and find the phone number. DNS does the same thing for websites — you look up "google.com" and your computer finds the address of the server that hosts Google.

A domain name is the name you type — like "amazon.com" or "netflix.com". The people who own those names rent them from registrars (like GoDaddy or Namecheap), and DNS is the system that makes those names actually work when someone visits them.

Without DNS, You'd Memorize Numbers

Imagine if every time you wanted to visit a website, you had to type in a string of numbers like 192.168.1.1 instead of a name like "myshop.com". Nobody would remember them. DNS makes the web usable for humans.

For anyone building websites or online businesses, understanding DNS is critical. When you launch a new site, you use DNS records to tell the internet where your files live. Get the settings wrong and your site won't load — for you or anyone else. DNS is the connective tissue between a domain name you own and the server that delivers your content.

💡 Key Insight

Every time you buy a domain name, you're renting a spot in the world's largest phone book. DNS is what makes that rental visible to the entire internet — and DNS changes are how you point that rented address to wherever your content actually lives.

The DNS Lookup in 5 Steps

When you type a URL and hit Enter, your browser asks DNS to translate that name into an address. This happens in a fraction of a second. Here's the step-by-step journey:

What Happens Inside DNS
🌐
Browser
Checks its own cache first
🔍
Resolver
Your ISP's DNS resolver
🌱
Root Server
Points to the .com server
📂
TLD Server
Knows who owns the domain
🔑
Auth Server
Returns the IP address
🖥️
Server
Delivers the webpage
result cached for next time

The Most Common DNS Records

When you buy a domain and connect it to a website, you set up DNS records. Here are the three most important types:

🏠

A Record

The most common record. It maps a domain name directly to an IP address — like pointing "mysite.com" to the server's number "192.168.1.1".

🔗

CNAME Record

Points one domain name to another. "shop.mysite.com" can point to "myshopify.com" — so when Shopify moves servers, your subdomain still works.

📧

MX Record

Handles email routing. It tells the internet: "When someone sends mail to you@mysite.com, deliver it to Google's mail servers."

Here's what an A record setup looks like in a typical DNS manager:

DNS Manager — A Record Setup
Type    Name    Value              TTL
A       @       192.168.1.1        3600
A       www     192.168.1.1        3600
CNAME   shop    myshopify.com      3600
MX      @       mail.google.com     3600

The "@" symbol means "the root domain itself" (just "mysite.com"). The "www" entry makes sure both "mysite.com" and "www.mysite.com" load your site.

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 an A record in DNS?
Question 3
Why does DNS matter for people who build websites?
🏆

You crushed it!

Perfect score on this module.