What Is the Difference Between a Domain and Hosting?

A domain without hosting is an address with no building. Hosting without a domain is a building nobody can find. They are sold together so often that people forget they are different purchases.

What Is the Difference Between a Domain and Hosting? — Troiana insight cover

In short

A domain is the name people type, registered annually through a registrar; hosting is the server space where the website's files live, rented from a hosting provider. DNS records at the domain point the name at the host. They are separate purchases and can come from different companies, which is usually wiser: it keeps the domain, the most valuable and least replaceable asset, independent of whichever host you use this year. Email is a third, separate service that also hangs off the domain.

The two things

The domain is the name: yourbusiness.com. You register it, for a year or several, through a registrar such as Cloudflare, Namecheap, Porkbun or GoDaddy, and you keep it for as long as you keep renewing. Nobody owns a domain outright; you hold the right to use it while the registration is current. It costs $10 to $20 a year for a normal .com.

Hosting is where the website actually is: a server, or a slice of one, or a network of them, that stores the site's files and sends them to visitors. You rent it monthly or yearly from a hosting provider. Static sites can be hosted free; small business sites cost a few dollars to a few tens of dollars a month; applications cost more. The hosting price ranges vary with what the site is.

The address and the building. One tells people where to go; the other is what they find when they get there.

How they connect

DNS, the Domain Name System, links the two. At the domain, you set records that say "the website for this name is at this server": an A record pointing at the host's IP address, or a CNAME pointing at the host's own name. When someone types the domain, their browser looks up those records and connects to the host. Change the records, and the same domain points at a different host; the address stays the same while the building changes.

This is why the two can and should be independent. Moving hosts is a DNS change; the domain never moves.

Why buy them separately

Hosting companies sell domains, and registrars sell hosting, and bundling is convenient. The convenience costs you later.

Leaving becomes harder. If the host also holds the domain, leaving the host means transferring the domain, which some make slow and awkward. If the domain is elsewhere, leaving is a DNS change and a cancellation.

The free domain is not free. A domain bundled with a hosting plan is free for a year, then billed, sometimes above market rate, and occasionally registered in the host's name rather than yours.

Risk concentration. A dispute, a billing failure, or a security incident at one company should not take both your address and your building. The domain is the asset that cannot be replaced; a new host can be found in an afternoon.

The sensible arrangement: domain at a registrar that does nothing but registration and DNS; hosting wherever suits the site; and the login for each held by the business, not by an agency or a freelancer.

Email is a third thing

Email at your domain, you@yourbusiness.com, is neither the domain nor the web hosting. It is a mail service, from Google Workspace, Microsoft 365, or a mail host, connected to the domain by MX records in DNS. Some web hosts include email; it is usually poor and it ties your mail to your web host, which is the same lock-in problem again. Keep mail separate, and when changing web hosts, remember that email will keep working only if the MX records are left alone.

Who should own what

The business should hold the registrar account, the DNS, and the hosting account, in its own name, with its own payment method, and with two people who can log in. Agencies and freelancers can be given access; they should not be the account holder. A remarkable number of businesses discover, when a relationship ends or a developer becomes unreachable, that they do not control their own domain, and recovering it ranges from tedious to impossible.

What each costs, roughly

  • Domain: $10–$20 a year, more for premium extensions.
  • Hosting: $0 for a static site on a CDN, $5–$50 a month for typical business sites, more for applications.
  • Email: $5–$10 per mailbox per month.
  • DNS: usually free with the registrar or a service such as Cloudflare.
  • SSL certificate: free from Let's Encrypt through nearly every host.

A small business website's entire infrastructure is often under $200 a year, and the domain is the only part that must be renewed on a deadline.

The setup in one paragraph

Register the domain at a registrar. Choose hosting for the site. In the registrar's DNS settings, point the domain at the host with the records the host specifies. Set up email at a mail provider and add its MX records. Turn on auto-renew for the domain and put the renewal date on a calendar. Keep every login in a password manager the business controls. Done that way, any one of the three services can be swapped without touching the other two, which is the whole point of keeping them apart. If you have inherited a tangle where all three are somewhere you cannot see, book a call and we will untangle it.

Common questions

Do I need both a domain and hosting for a website?

Yes. The domain is the address people type; hosting is where the site's files live and are served from. One without the other is either an address with nothing behind it or a site nobody can reach. They are separate purchases connected through DNS records, and can be bought from different companies.

Can I buy a domain and hosting from different companies?

Yes, and it is usually the better arrangement. Register the domain at a registrar and rent hosting wherever suits the site; DNS records at the registrar point the domain at the host. Keeping them separate makes changing hosts a simple DNS change and keeps the domain, your least replaceable asset, out of any single provider's hands.

Is email included with a domain or hosting?

Neither, strictly. Email is a third service, from a provider such as Google Workspace or Microsoft 365, connected to the domain by MX records in DNS. Some web hosts bundle basic email, which ties your mail to the host. Keeping email separate means changing web hosts never risks your inbox.

What happens to my website if my domain expires?

The site and every email address at the domain stop working immediately, and the hosting continues to run a site nobody can reach. There is a grace period of roughly thirty days to renew at the normal price, after which recovery becomes expensive or impossible. Turn on auto-renew and keep the payment card current.

Who should own the domain, me or my web developer?

You, always. The registrar account should be in the business's name with the business's payment method, and developers or agencies should be given access rather than holding the account. A domain registered by a developer who later becomes unreachable can be very difficult to recover.

Have something worth building right?