DNS
DNS is the internet's phone book, translating easy-to-remember addresses into ones computers can find.
In one sentence
DNS is the internet's 'phone book', translating human-friendly addresses into the IP addresses computers use.
In Plain Language
Computers actually find each other on the network by a string of numbers (an IP address), but people can't remember piles of digits. DNS (Domain Name System) is the translator in the middle: you type example.com, DNS looks up the IP it maps to, and the browser then knows which server to connect to.
When setting up a site, you add "records" to DNS, telling the world where this address should point. After a change it won't take effect globally instantly — it needs some "propagation" time, which is normal.
Architecture
How It Flows
What Happens When You Type a URL
Between hitting Enter and seeing the page, a quick exchange happens that you never notice:
- The browser asks DNS for the IP address behind the name you typed (
example.com). - DNS replies with the number, for example
203.0.113.5. - The browser connects to the server at that address.
- The server sends back the page, and it loads on your screen.
The whole round trip usually takes a fraction of a second.
Key Takeaways
- DNS = the phone book translating addresses into IPs.
- Changes have "propagation delay" — not instant worldwide.
- A misconfiguration makes a site unreachable, so change carefully.
An everyday analogy
Like saved phone contacts: you call 'Mom' (the address) and your phone dials the number (the IP) — you don't memorize digits.
Pros
- Lets people reach a site by an easy-to-remember name
- Flexibly switch the server address behind a site
- Supports many record types (website, email, etc.)
Cons
- Changes take time to take effect globally (propagation delay)
- A misconfiguration can make the whole site unreachable
Good for
- Any site that needs a custom address
- Services that need email or subdomains bound
Not for
- Projects using only the platform's default address for quick testing
Beginner scorecard
- Beginner-friendly
- 3/5
- Learning cost(higher = more cost)
- 2/5
- Market demand
- 3/5
- AI-generation friendly
- 3/5
Frequently asked questions
What is DNS?
DNS is the internet’s “phone book,” translating human-friendly domain names (example.com) into the IP addresses machines use. Without it, you’d have to memorize strings of numbers to reach a site.
Why did my new domain take hours to start working?
Because DNS answers are cached at many layers and refresh gradually per their TTL (called propagation). Lowering the TTL before you change DNS shortens the wait.
What’s the difference between an A record and a CNAME?
An A record points a domain straight at an IP; a CNAME points a domain at another domain. With a hosting platform, you usually set a CNAME to the address it gives you.