Where creative ideas grow  ·  Building and maintaining websites since 2018, from Rajshahi, Bangladesh

Web development 6 min read

What Is DNS? A Plain-English Guide for Site Owners

Confused about what is DNS and why it matters for your website? This plain-English guide covers record types, TTL and the mistakes that break sites.

Illustrated guide: What Is DNS? A Plain-English Guide for Site Owners

If you have ever asked what is DNS while moving a website or setting up email, the short answer is that it is the system that turns a domain name like yoursite.com into the numeric address computers actually use to find it. Understanding the basics takes ten minutes and will save you hours the next time you change hosts, add email, or wonder why a site “is not working yet.”

Some links in this article are affiliate links. If you buy through them, Mahatosoft may earn a small commission at no extra cost to you.

DNS stands for Domain Name System. Every website, mail server and app on the internet has an IP address, a string of numbers. DNS is the directory that maps human-friendly names to those numbers, so you can type a domain instead of memorising a number that could change at any time.

Where to check your own DNS records

Run your domain through our free SPF, DKIM and DMARC checker to see your live email-related DNS records in plain English, including the record type and what it means.

What is DNS, in plain terms

Think of DNS as a phone book for the internet. You look up a name, “yoursite.com,” and DNS returns the number, an IP address like 192.0.2.10, that your browser then connects to. Without DNS you would need to type raw IP addresses for every site you visit, and remember every one of them.

DNS is not one server. It is a distributed system of millions of servers worldwide, each responsible for a small piece of the directory, working together so the lookup completes in a fraction of a second.

How a DNS lookup actually works

Once you know what is DNS in theory, here is what actually happens the moment you type a domain into your browser. Several servers are asked in sequence before you get an answer:

  1. Recursive resolver: usually run by your internet provider or a public service like Google or Cloudflare. It does the searching on your behalf.
  2. Root server: tells the resolver which server handles the domain’s ending, such as .com or .org.
  3. TLD (top-level domain) server: points the resolver to the specific nameservers for your domain.
  4. Authoritative nameserver: holds the actual DNS records for your domain and returns the answer, such as the IP address for your site.

The resolver then caches the answer for a period of time set by the record’s TTL, so the next visitor’s lookup is faster and does not repeat every step. Cloudflare’s guide on what is DNS covers this lookup path with helpful diagrams if you want a deeper look.

The DNS record types you will actually meet

A domain’s DNS zone is a list of records, each telling the world something different about your domain. As a site owner you mostly deal with these:

RecordWhat it does
APoints a domain or subdomain to an IPv4 address, such as your web server.
AAAASame as an A record, but for an IPv6 address.
CNAMEPoints a subdomain to another domain name instead of an IP address, e.g. www to your root domain.
MXSays which mail servers handle email for the domain, and in what priority order.
TXTFree-text entries used for verification and email authentication, such as SPF and DMARC.
NSLists the authoritative nameservers responsible for the domain.
CAAStates which certificate authorities are allowed to issue SSL certificates for the domain.

The Mozilla Developer Network keeps a plain DNS glossary entry that defines each of these terms if you want a second reference.

Registrar, nameservers and DNS host: three different things

These three terms get mixed up constantly, and mixing them up is where most DNS mistakes start:

  • Registrar: the company you bought the domain name from, such as Namecheap or GoDaddy. It does not have to host your DNS.
  • Nameservers: the servers that actually answer DNS queries for your domain. Your registrar lets you point these anywhere, such as at Cloudflare instead of the registrar’s own DNS.
  • DNS host: the service running the nameservers and holding your actual records. This is commonly your registrar, your web host, or a dedicated service like Cloudflare.

When someone says “your DNS is wrong,” they usually mean a record inside your DNS host’s panel, not the registrar account itself.

TTL: why DNS changes are not instant

Every DNS record has a TTL (time to live), measured in seconds, that tells resolvers how long to cache the answer before checking again. A typical TTL is 3,600 seconds (one hour), but it can be much longer or as short as a few minutes.

This is why a DNS change can take anywhere from a few minutes to 48 hours to be visible everywhere: some resolvers around the world are still serving the old, cached answer until their copy expires. Lowering the TTL a day or two before a planned change, then raising it again afterwards, is standard practice before a migration.

Why DNS matters for your website and email

Nearly every “my site is down” or “my emails are not arriving” report that is not a coding bug traces back to a DNS record: an A record pointing at the wrong server, a missing MX record, or an SPF TXT record that was never added. Our guides on fixing an SPF DNS lookup error and merging multiple SPF records are both really DNS problems wearing an email costume.

Search engines also use DNS indirectly: if your DNS is misconfigured and your site is unreachable when Googlebot tries to crawl it, that can affect indexing and rankings over time.

Common DNS mistakes to avoid

  • Deleting a record you do not recognise. Old TXT or CNAME records often belong to a service still in use, such as a verification for Google Search Console or a marketing tool.
  • Changing nameservers without copying existing records first. Moving to a new DNS host with a blank slate can take your email offline along with your website.
  • Forgetting the trailing dot or exact hostname format some DNS panels require, especially for CNAME and MX targets.
  • Not lowering TTL before a migration, which makes the cutover slower and rollback harder if something goes wrong.

A note on DNSSEC

Once you understand what is DNS at the record level, DNSSEC is easy to place: it adds a cryptographic signature to DNS records so resolvers can verify the answer has not been tampered with in transit. It protects against DNS spoofing but is unrelated to encrypting the connection to your website, which is the job of an SSL/TLS certificate instead. Most DNS hosts, including Cloudflare, let you enable DNSSEC with one click if your registrar supports it.

Moving hosts or setting up a new site?

We handle DNS as part of every WordPress website build and every migration, so nothing goes offline in between. Book a free 15-minute call or get in touch if you are planning a move.

What is DNS: quick answers

What is DNS used for on a website?

DNS points your domain name to the server that hosts your website (the A or AAAA record) and to the servers that handle your email (the MX records), among other jobs like domain verification.

How long does a DNS change take to work?

It depends on the record’s TTL, usually somewhere between a few minutes and 48 hours. Most changes are visible to most visitors within an hour if the TTL was already set low.

What is the difference between DNS and hosting?

Hosting is the server that stores and runs your website’s files. DNS is the directory that tells browsers which server to connect to. You can change hosting without changing your domain, as long as you update the DNS record to point at the new server.

Can I manage DNS myself without a developer?

Yes, for most small sites. Your registrar or DNS host’s control panel lets you add, edit and delete records directly. The risk is not the interface but forgetting what an existing record does before removing it.

Sukumar Mahato

Sukumar Mahato

Founder · Full-stack developer

Founded Mahatosoft in 2018. Has shipped and rescued more than 420 projects across React, Node.js and WordPress — and still takes the emergency calls himself.

Discussion

Join the conversation

No comments yet. Share a question or what worked for you.

Leave a comment

Your email stays private. Required fields are marked *.

Free 15-minute consultation

Let’s scope your project properly.

Tell us what you need built or fixed. You get an approach, a timeline and a fixed price — usually within a few hours.