DNS

DNS – The Phonebook of the Internet

If you’ve ever wondered how your browser knows where to find a website when you type something like google.com, the answer is DNS. It’s one of the most important systems on the internet—but it usually works so quickly and quietly that most people don’t even notice it.

Let’s break it down in simple terms.

DNS stands for Domain Name System.

Its job is to translate human-friendly names like facebook.com into computer-friendly IP addresses like 157.240.22.35. Computers use IP addresses to talk to each other, but those numbers are hard for people to remember. DNS handles the translation automatically, every time you visit a website.

You can think of it like the phonebook of the internet:

  • You know the name (e.g., twitter.com)
  • DNS tells your computer the number (e.g., IP address)
  • Your computer then uses that number to connect to the site

Without DNS, you’d have to remember the IP address of every website you visit. Instead of typing youtube.com, you’d need to type something like 142.250.190.46. That’s not practical.

DNS is what makes the web user-friendly and scalable. It allows:

  • Easy website navigation by name
  • Central management of name-to-IP mappings
  • Fast updates when servers change locations

DNS also plays a role in email delivery, web security, and load balancing.

Here’s what happens when you visit a website:

  1. You type a URL into your browser, like example.com.
  2. Your computer checks its local DNS cache. If it visited the site recently, it might remember the IP address.
  3. If not, it asks your configured DNS resolver, usually provided by your internet provider (or services like Google DNS or Cloudflare).
  4. The resolver starts asking other DNS servers to find the correct IP address:
    • It asks a Root server: “Where can I find .com domains?”
    • Then it asks a Top-Level Domain (TLD) server: “Where is example.com?”
    • Then it asks an Authoritative DNS server: “What’s the IP for example.com?”
  5. The answer (the IP address) travels back to your browser, which then connects to the website.

This whole process usually happens in milliseconds.

Here are the main players in the DNS lookup process:

  • This is the first server your device asks.
  • It handles the entire lookup process on your behalf.
  • Usually managed by your ISP or services like Google DNS (8.8.8.8) or Cloudflare (1.1.1.1).
  • Knows where to find all the top-level domains like .com, .org, .net, etc.
  • First stop in the DNS hierarchy.
  • Knows where to find the authoritative name servers for specific domains.
  • Example: It knows who controls example.com.
  • Holds the actual DNS records for a domain.
  • It gives the final answer: “Here’s the IP for example.com.”

DNS uses records to store different types of information. Here are the ones you’ll see most often:

Record TypeWhat It Does
A RecordMaps a domain to an IPv4 address
AAAA RecordMaps a domain to an IPv6 address
CNAMEAlias of another domain (e.g., www.example.com points to example.com)
MX RecordDefines where to deliver email for the domain
NS RecordLists the name servers responsible for the domain
TXT RecordStores text data – often used for email security (SPF, DKIM), verification, etc.
PTR RecordUsed for reverse DNS – turning an IP address into a domain name

Let’s say you type offensivecyberprofessional.com into your browser.

  • Your DNS resolver starts asking the hierarchy:
    • Root → TLD → Authoritative
  • Eventually, it finds out that offensivecyberprofessional.com maps to something like 104.22.1.46
  • Your browser connects to that IP address
  • The website loads

All of that just to get the address!

If you don’t want to rely on your internet provider’s DNS, you can use public DNS servers. They may be faster, more reliable, or better for privacy.

ServiceIP Address
Google DNS8.8.8.8, 8.8.4.4
Cloudflare1.1.1.1, 1.0.0.1
OpenDNS208.67.222.222, 208.67.220.220

You can change your DNS in your device or router settings.

Summary

  • DNS turns domain names into IP addresses so your browser knows where to go.
  • It works silently in the background and involves several types of servers.
  • Without DNS, the internet would be much harder to use.
  • Understanding DNS helps you troubleshoot network problems and understand how the web really works.

Scroll to Top