Tech

What is DNS?

Published
Published:
Table of Contents

DNS is the phone book of the internet. You type a name like shravangoswami.com, but computers actually talk using numbers called IP addresses. DNS is the system that quietly converts the name into the number.

Why we need it

Computers find each other using IP addresses like 142.250.182.14. Nobody wants to remember that for every website. So we use friendly names, and DNS does the translation in the background.

It is the same reason you save “Mom” in your phone instead of memorising her number.

What happens when you open a website

  1. You type example.com in the browser.
  2. Your computer asks a DNS server, “what is the address for this name?”
  3. The DNS server replies with the IP address.
  4. Your browser connects to that address and loads the page.

All of this happens in a fraction of a second, every single time, without you noticing.

A few terms you may hear

  • Domain name: the human name, like example.com.
  • IP address: the number the name points to.
  • DNS record: an entry in the phone book. The common one is an A record, which maps a name to an IP address.

Why it matters

When you buy a domain and set up a website, you spend a lot of time editing DNS records. And when a site “is not loading” but the internet works fine, DNS is very often the quiet culprit. There is a running joke among engineers: it is always DNS. It is funny because it is too often true.

Support this post Sponsor