What Is DNS? DNS and Domains Explained Simply
You type google.com and the page just opens. But here’s the strange part: computers don’t actually use names. They only understand plain numbers. So how does a friendly name like google.com find the right website?
What is DNS? DNS (Domain Name System) is the internet’s phonebook: it takes a human-friendly website name like google.com and looks up the real number address (the IP address) that computers use to find that site.
What is DNS, really?
Think of an old paper phonebook. You know your friend’s name, but not their phone number. You look the name up, and out comes the number. The phonebook does the matching for you.
DNS works exactly the same way. You type an easy name to remember, and DNS finds the real number hiding behind it. Names are made for humans. Numbers are made for machines. DNS is the quiet translator sitting between the two.
This happens on every single click. Every time you open a site, tap a link, or load an app, a DNS lookup quietly runs in the background and you never even notice.
What is a domain, and how is it different from DNS?
A domain is the friendly name itself, like myshop.in or google.com. It’s the part you read and remember.
The IP address is the real number behind that name, something like 142.250.182.78. It’s what computers actually use to connect.
And DNS is the busy phonebook that matches one to the other. Picture saving a contact in your phone: the name is the domain, the long number is the address, and the matching in between is DNS.
- Domain — the friendly name you type (
myshop.in). - IP address — the real number computers use.
- DNS — the system that turns the name into the number.
Why does DNS matter?
Because nobody memorises numbers. You can recall names like google.com, flipkart.com, or your bank’s site instantly, but computers still need numbers to connect.
Without DNS, you’d have to remember a long string of digits for every single website you visit. That’s like memorising every friend’s phone number with no contacts app. DNS removes that pain so the whole internet stays easy to use.
It also means a website can keep its name even if its number changes. The phonebook simply updates the matching behind the scenes, and you keep typing the same friendly name.
How do I try a DNS lookup right now?
You can watch DNS do its job in one command. Open your terminal and type:
nslookup google.com
You’ll see the friendly name turn into one or more real number addresses. That swap, name to number, is exactly what happens on every visit, just made visible. Try it with a few sites you use every day and watch each name reveal its hidden number.
If you’re still getting comfortable with the terminal, the free Zero to AI Hero course walks you through it step by step, from your very first command onward.
Key takeaways
- What is DNS: the internet’s phonebook that turns website names into number addresses.
- Domain is the friendly name; the IP address is the real number behind it.
- A DNS lookup runs quietly on every click, every time you open a site.
- DNS exists because people remember names easily, but computers need numbers.
- Run
nslookup google.comto see a name become a real address yourself.
That’s DNS and domains in a nutshell: a simple phonebook for websites. Next up, we’ll answer another everyday question you’ve probably never stopped to ask: what is a URL, really?
🚀 Take the full free course: Zero to AI Hero — learn to build with AI from scratch. New lessons daily, in Hindi & English.
Want to actually learn this?
151 free 2-minute lessons — from "what's a file?" to building with AI.
▶ Start the free course