Blog / How the internet works /

DNS explained for people who just want their site to work

DNS is the part of running a website that people avoid until something breaks. Then it’s 11pm, the site won’t load, and someone has said the words “propagation” and “nameservers” as though they were obvious.

They’re not obvious. But DNS is much simpler than its reputation, and learning five or six terms will cover nearly everything you’ll ever need.

What DNS is

DNS stands for the Domain Name System. It translates a name people can remember, like ekom.blog, into the numeric address a computer needs, called an IP address.

Think of the contacts list on your phone. You tap “Amaka”, not a string of digits. The phone looks up the number. DNS is the contacts list for the whole internet, and it’s split into many small lists that different companies look after.

I walked through where it sits in the full journey in what actually happens when you type a web address. Here, the focus is on the bit you control.

Three places that are easy to mix up

Most DNS confusion comes from three different companies being involved, and people not knowing which is which.

  1. The domain registrar. Where you bought the name, and where you renew it. It’s a rented name, not a purchase for ever, and a lapsed domain takes everything down.
  2. The DNS host. The service that holds your DNS records. Often it’s the registrar, but it can be your web host or a service like Cloudflare.
  3. The web host. The server where your website’s files actually live.

Your nameservers are the setting that says which company is the DNS host. If you change the nameservers, you’re telling the world to look somewhere else for all your records. That’s a bigger change than editing one record, and it’s the usual way people take their own site offline by accident.

So the first useful habit: write down which company does each of the three jobs.

The records that matter

A DNS “record” is one line in your list. You’ll meet these:

Record What it does Plain-words example
A Points a name to an IPv4 address “ekom.blog lives at this server”
AAAA Same, for an IPv6 address The newer type of address
CNAME Says one name is an alias of another “www is the same as the main address”
MX Says where the domain’s email goes Which mail service handles your email
TXT Holds text for verification and email security Proving you own the domain to Google; SPF and similar settings
NS Lists the nameservers Who is in charge of the zone

You can run most sites knowing A, CNAME, MX and TXT. When you set up Search Console or a Google service, it often asks you to add a TXT record to prove ownership. When you point a domain to a new host, you usually change an A record, or a CNAME.

TTL and “propagation”

Every record has a TTL, time to live: how long other computers may remember the answer before asking again. A TTL of 3600 means one hour.

“Propagation” is the name for the time it takes for old remembered answers to expire everywhere. DNS doesn’t broadcast your change to the world. People just stop using their old copy when it runs out. That’s why you might see the new site, while a colleague still sees the old one.

A practical tip: if you’re about to move a site, lower the TTL on the relevant records a day or two beforehand. Then when you switch, the old answers expire in minutes rather than hours. Raise it again afterwards.

Email is attached to DNS, and that’s the trap

Here’s the thing that catches people. When you change a domain’s DNS (for example, moving the site to a new host by changing nameservers), you’re replacing the whole list of records. If your email records (MX, and the TXT entries for SPF and DKIM) weren’t copied across, email stops arriving, or starts landing in spam.

So before you change nameservers:

  1. Export or screenshot every existing record at the current DNS host.
  2. Check you can see MX and TXT records, not just the A record.
  3. Recreate them all at the new host.
  4. Only then change nameservers.

A site that goes down gets noticed in minutes. Email that quietly stops can go unnoticed for days. Check both.

A safe way to move a website

Say you’re moving a WordPress site to a new host. A simple order of events:

  1. Set up the site on the new host and test it, without touching DNS.
  2. Lower the TTL on the A record a day ahead.
  3. Back up everything on the old host.
  4. Change the A record (or nameservers, if that’s the plan) to the new server.
  5. Watch the site and your email for a day.
  6. Keep the old host running until you’re sure nothing is still pointing there.
  7. Restore the TTL.

If something goes wrong, you can point the record back, because you kept the old setup alive. That’s the entire safety net.

Troubleshooting: which layer is it?

When a site is “not working”, DNS is a suspect if:

  • You see “server not found” or “DNS_PROBE_FINISHED_NXDOMAIN”.
  • The site works for some people or some networks but not others.
  • A change you made hours ago still hasn’t shown up.

You can check what the world sees with free lookup tools online, which show the current A, MX and TXT records. If the lookup shows the right answer, the problem is probably elsewhere. If the answer is wrong or empty, you’ve found your problem.

Also try this on your own computer: clearing your browser cache and your operating system’s DNS cache, or testing on mobile data instead of Wi-Fi. If it works there, it’s likely a local cache.

Common myths

  • “DNS is where the website lives.” It isn’t. DNS points to where the website lives.
  • “Changing DNS changes my website.” Only where it’s served from. The content stays where it is.
  • “I can’t break anything by looking.” True. Looking is harmless. Changing nameservers without notes is where the risk is.
  • “Everyone sees the change at the same moment.” They don’t. See TTL above.

Key takeaways

  • DNS turns names into addresses; it doesn’t hold your website.
  • Know who your registrar, DNS host and web host are.
  • A, CNAME, MX and TXT cover almost everything.
  • Copy all existing records before changing nameservers, and watch email as well as the site.
  • Lower the TTL before a move, and keep the old host alive until you’re sure.

FAQ

How long does a DNS change take?

Often minutes, sometimes up to a day or more, depending on the TTL and how widely the old answer was cached.

Do I need Cloudflare to use DNS properly?

No. Any decent DNS host will do. Some people pick a separate DNS service for speed and extra features, but it isn’t required.

Can I lose my domain by getting DNS wrong?

You can’t lose ownership through DNS mistakes. You can take the site and email offline. Losing the domain itself happens when it isn’t renewed.

Do you know, right now, which company holds your domain and which holds your DNS? If not, that’s a ten-minute job worth doing today.