Skip to content

What is DNS? Domain, hosting and DNS explained

People use "domain", "hosting" and "DNS" as if they were one thing. They are three, and keeping them straight makes every later problem easier to solve. This article explains each one, what the common record types do, and why DNS changes are not instant.

7 min read · Updated 2026-10-17

The short answer

A domain is the name you rent, hosting is the computer that holds your site, and DNS is the directory that connects the name to that computer and routes your email. DNS is made of records (A, CNAME, MX, TXT), each with a TTL that controls how long the answer is cached. One wrong record can take down your site or your email.

Three things people mix up

Think of a shop. The domain is the street address printed on your business card. The hosting is the building itself, with your products inside. DNS is the sign at the end of the road that tells visitors which building the address belongs to. If the sign is wrong, people arrive at the wrong place or nowhere, even though the building is fine.

Each of these is usually bought separately, and often from different companies. That is normal. It also means that "my website is down" can have three very different causes, and the fix depends on which one it is.

PieceWhat it isWho you payWhat breaks if it fails
DomainThe name you rent, such as yourcompany.comA registrar, usually yearlySite and email both stop when it expires
HostingThe server that stores and serves your website filesA hosting company, monthly or yearlySite goes down, email usually keeps working
DNSThe records that point your name to hosting and emailOften included with the registrar, host or a service like CloudflareSite, email or both can fail depending on which record is wrong
Email serviceWhere your mailboxes live (for example Google Workspace or Microsoft 365)The email provider, per userMail stops or is rejected, site keeps working

How DNS works, in one picture

When someone types your domain, their device asks a DNS resolver, usually run by their internet provider or a public service, "where does this name live?" The resolver checks whether it already knows the answer. If not, it asks the authoritative name servers for your domain, the servers that hold your official records. Those servers answer, and the resolver remembers the answer for a set time before asking again.

The important point: your domain has one set of name servers that act as the official source. Wherever you edit DNS records, they only take effect if they are on the set of name servers your domain actually uses. A very common mistake is editing records at the registrar while the domain is pointed at name servers belonging to a host or Cloudflare. The edit saves fine and does nothing.

The record types you will actually meet

A record is one line in your DNS. For most businesses, four types cover nearly everything.

TypeWhat it doesLooks likeTypical use
AMaps a name to an IPv4 address (AAAA does the same for IPv6)@ → 203.0.113.10Points your site to its server
CNAMEMakes one name an alias of another namewww → yourcompany.comSends www or a subdomain to another address or a service
MXSays which mail servers receive email for the domain, with a priority number@ → mail.provider.com (priority 10)Delivers your email to Google, Microsoft or another provider
TXTHolds free text that other systems readv=spf1 include:... ~allEmail authentication (SPF, DKIM, DMARC) and proof you own the domain

The example IP address above is a documentation placeholder, not a real server. Your own values come from your host or email provider. Cloudflare's reference describes these types the same way: an A record maps a name to an address, a CNAME maps a name to another name, an MX record is required to deliver email, and a TXT record holds text such as ownership proofs.

TTL and "propagation"

Every record carries a TTL, short for time to live, a number of seconds that tells resolvers how long they may remember the answer. A long TTL makes lookups faster but slows updates, because resolvers keep serving the old answer until the timer runs out. A short TTL means changes reach people sooner. Cloudflare's documentation describes exactly this trade-off, and lists a range from 60 seconds up to one day for records that are not proxied.

"Propagation" is the everyday word for those cached answers expiring around the world. It is not a single event. Different people see the change at different moments, which is why you may see the new site while a colleague still sees the old one. Some providers also say changes can take up to 48 hours, for example in Google's own setup guidance for SPF. Plan for the slow end, and lower the TTL before a planned change as described in point your domain to a new site.

Why one wrong edit breaks things

  • Deleting or changing an MX record sends your email to the wrong place, or nowhere. Messages may bounce or be lost.
  • Replacing the whole zone at a new host (a common step when switching providers) often drops the MX and TXT records, so the website works and email dies silently.
  • Changing the A record on the main name moves the whole website. If it points at a server that does not have your site, visitors see an error or someone else's page.
  • Adding a second SPF TXT record instead of editing the existing one makes SPF fail, and your mail starts landing in spam.
  • A CNAME on a name that already has other records (such as the bare domain with its MX records) is not allowed in standard DNS and causes unpredictable results. Some providers offer a workaround, but check before using it.

Never delete a DNS record you do not recognize. It is usually there for email, a verification, or a service your team set up years ago.

A safe way to edit DNS

  1. 1Find out which name servers your domain really uses. Your registrar shows them under "name servers" or "nameservers". That tells you where the live records are.
  2. 2Open the live records and copy every one of them (a screenshot is fine) before changing anything.
  3. 3Change one record at a time, and note the old value next to the new one.
  4. 4If the change is planned, lower the TTL a day or more in advance so the switch is fast and reversible.
  5. 5After saving, test the website and send a test email both directions. See email and your domain for the test steps.
  6. 6If something breaks, put the old value back. That is why you wrote it down.

Example: A site move that silently killed email

A clinic moved its site to a new host. The new host said "point your name servers to us", so the owner changed them at the registrar. The site loaded fine the next day. Three days later patients complained that emails to the clinic bounced. The old DNS zone held the MX records for Google Workspace and a TXT record for SPF. The new host's zone was empty, so mail had nowhere to go. The fix took minutes once someone compared the old zone with the new one: copy the MX and TXT records across. The lesson is to export the old records first and to test email, not only the site.

When to ask us

Ask before you change anything if you do not recognize a record, if your domain, host and email are all with different companies, or if a launch is planned. Send a request through the support form and include: your domain name, who your registrar and host are (if you know), what you changed or want to change, and the date. Add a screenshot or link to a screenshot of your current DNS records (Google Drive, Dropbox or Loom). Do not send passwords. We can work out what is needed and guide the change without seeing a login.

If you are not sure who controls your domain, read who owns your accounts first, then tell us what you found.

Questions people ask

What does DNS stand for?

DNS stands for Domain Name System. It is the global directory that turns a name like yourcompany.com into the address of a server, and that also tells mail servers where to deliver email for that name. It does not store your website. It only points to where your website and mailboxes live.

How long does a DNS change take?

It depends on the TTL of the old record and on caches you cannot control, so there is no single number. With a short TTL set in advance, most people see the change within minutes to hours. Some providers advise allowing up to 48 hours. Plan for the slower end for anything important, and do not make a second change while the first is still spreading.

Is DNS the same as hosting?

No. Hosting stores and serves your website files. DNS only holds the records that point your domain at your host and your email provider. You can change hosting without changing your registrar, and you can host DNS at a third party such as Cloudflare while your site sits somewhere else.

Why can I see my new site but my colleague still sees the old one?

Because their device or internet provider still holds the old DNS answer in its cache until the TTL runs out. Both of you are asking the same question and getting different remembered answers. It resolves on its own. A device restart, a different network or waiting usually fixes it. Do not undo the change just because one person sees the old version.

What are name servers?

Name servers are the servers that hold the official DNS records for your domain. Your registrar stores which name servers your domain uses. Only the records on those name servers count, so always edit DNS in the place those name servers belong to, whether that is your registrar, your host or a service like Cloudflare.

Sources

Did not find it? Ask our AI.

It answers from our own support content and sends anything else to a person.

Rated by our clients

Don't take our word for it.

Some of the businesses we have worked with

Your cookies, your call

We use only the cookies this site needs to work. If you say yes, we also turn on Google Analytics to see what works, and our live chat, which records how you use the site so we can help you faster. Nothing optional runs until you choose. See our cookie policy.