Versus · Web hosting

The difference between web hosting and a domain name (and whether you need both)

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • A domain name is the address people type (yourbusiness.com); web hosting is the computer that stores your website's files and sends them to visitors.

Compared here

  • 01Domain name
  • 02Web hosting

Short answer

A domain name is the address people type (yourbusiness.com); web hosting is the computer that stores your website's files and sends them to visitors. Think of the domain as your street address and hosting as the actual house. Mozilla's web docs put it plainly: domain names "provide a human-readable address for any web server," while a web server "stores web server software and a website's component files." You need both for a normal website, and they can come from the same company or two different ones.

Two money facts trip people up. First, you never own a domain: MDN says "you pay for the right to use a domain name for one or more years," through a registrar accredited by ICANN, and you must renew it. Second, "free domain" in a hosting deal usually means the first year only: Hostinger's plans, for example, say "Domain - free for 1 year." Pick one company for both if you want one bill and one login; keep them separate if you want to switch hosts later without touching your address. Below: a side by side table, how they connect through DNS, what each costs, and when you need only one.

Hostinger (hosting with a first year domain)Namecheap (domains)

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

Definitions from MDN Web Docs (Mozilla) and ICANN; bundle example from Hostinger's web hosting page, read 4 December 2026. Prices in US dollars as shown.
Domain nameWeb hosting
What it isThe address: a human readable name that points to a serverThe server: a computer that stores your site's files and serves them
AnalogyStreet addressThe house at that address
Who sells itRegistrars accredited by ICANN (or resellers); ccTLDs via their operatorsHosting companies
Do you own it?No; you rent the right to use it for one or more yearsNo; you rent space and computing on someone's server
BilledPer year, per domainMonthly or for a multi year term
Example costVaries by extension; often free for year one in hosting bundlesHostinger Premium $1.99 a month on a 48 month term, renewing at $10.99
What happens if it lapsesAddress stops working and the name can eventually be taken by someone elseSite goes offline; files may be deleted
Can you move it?Yes, transfer to another registrarYes, move files to another host and repoint DNS

Money talk first. Hostinger and Namecheap links go through vectaai.com/go/ and may pay us a commission. That does not change the explanation, and we will tell you when you do not need to buy hosting at all. Definitions come from Mozilla's MDN Web Docs and ICANN, the body that accredits domain registrars; the price example comes from Hostinger's own plan page. All read on 4 December 2026.

The one minute version

  • Domain name = the address. "yourbakery.com". Mozilla's MDN docs: domain names "provide a human-readable address for any web server available on the Internet."
  • Web hosting = the place your site lives. A computer, switched on all the time, that holds your pages, images and code and sends them to anyone who asks. MDN's web server page: a web server "stores web server software and a website's component files."

Street address and house. Phone number and phone. Pick whichever picture sticks. The address is useless without something at it, and the house is hard to find without an address.

Why both exist

Computers find each other by IP addresses, long strings of numbers. MDN explains domain names exist because "IP addresses are hard to remember and might change over time." So we give servers a name, and a system called DNS (the Domain Name System) translates the name into the number.

When someone types your domain:

  1. Their computer asks a DNS server: which IP address goes with this name?
  2. DNS answers with the IP address of your hosting server.
  3. Their browser connects to that server and asks for your page.
  4. Your host sends the files back, and the page appears.

That is the whole relationship. The domain's DNS settings point at the host. Change the DNS, and the same address points to a different house.

The domain: what you are really paying for

Three things to know.

You rent it, you never own it. MDN is blunt: "You cannot 'buy a domain name'." You "pay for the right to use a domain name for one or more years," and you can renew it. This is so unused names eventually go back into the pool. Our buy a domain name forever page explains why "lifetime domain" offers are not what they sound like.

You rent it from a registrar. ICANN's registration page says registrars "are accredited by ICANN organization and certified by the registries to sell domain names." There are more than two thousand of them, plus resellers who are not accredited themselves. Country domains like .fi or .de are handled by each country's operator. ICANN's registrant page adds that when you register, "a registrant enters into a contract with a registrar", and that you have a right to information about registering, transferring, renewing and restoring your domain.

The structure. MDN says domain names are read right to left: in developer.mozilla.org, "org" is the top level domain (TLD), "mozilla" is the second level domain, and "developer" is a subdomain. The TLD you pick (.com, .org, .io, a country code) is the biggest factor in price.

What a domain costs varies a lot by extension and by registrar. We break it down in how much does a domain name cost and compare registrars in best domain name registrar.

Web hosting: what you are really paying for

Hosting is renting space and computing on someone else's always-on computer. MDN lists why you do not just run your site from your laptop: a dedicated server is "typically more available", "always connected to the Internet", can keep "the same IP address all the time", and is "typically maintained by a third party."

MDN also splits servers into two kinds, which helps you pick a plan:

  • Static: the server sends files "as-is". Simple sites, portfolios, landing pages. Cheap or even free.
  • Dynamic: adds an application server and a database, so pages are built on the fly. WordPress, online shops, member areas. This is what most shared hosting plans are sold for.

Hosting is billed per month, usually paid upfront for a long term, and the intro price is not the renewal price. Hostinger's web hosting page, for example:

PlanIntro pricePaid todayRenews at
Premium$1.99 a month$95.52 for 48 months$10.99 a month for 12 months
Unlimited$2.79 a month$133.92 for 48 months$16.99 a month for 48 months
Cloud Startup$7.99 a month$383.52 for 48 months$25.99 a month for 12 months

Each of those plans lists "Domain - free for 1 year." So the domain is free in year one and a normal renewal after that, and the hosting price jumps at renewal too. That is normal in this industry; just do the math for year five, not month one. Our Hostinger plans page breaks it down.

Same company or two companies?

One company for both (for example, hosting with a free first year domain):

  • One bill, one login, one support desk.
  • DNS is set up for you automatically.
  • Good for: beginners, a single small business site.
  • Watch: if you leave the host, you will want to transfer the domain or at least change its DNS. Make sure the domain is registered in your name and you can reach its settings.

Two companies (domain at a registrar, hosting elsewhere):

  • Your address is independent of your host. Change hosts by changing DNS; the domain does not move.
  • Good for: anyone who might switch hosts, agencies, people with several sites.
  • Watch: two renewals to remember, and you set the DNS records yourself (the host tells you what to enter).

Our honest default for small businesses: register the domain at a registrar you like, keep the login safe, and point it at whatever host you use. It costs a few minutes more on day one and saves a headache when you switch hosts in three years.

When you need only one of them

  • Website builders (Wix, Squarespace, Hostinger's builder and others) include hosting. You just add or connect a domain. See domain and website builder.
  • Free static hosting like GitHub Pages hosts your files and gives you a free address on its own domain. Add a custom domain later if you want.
  • Email only. You can hold a domain without a website and use it just for email at a mail provider.
  • Reserving a name. Many people register a domain years before building anything. No hosting needed until the site exists.

Common mix-ups, cleared up

You hearWhat it actually means
"I bought my website"They registered a domain, hosted a site, or both. Ask which.
"Free domain for life"Usually first year free; renewals apply. Read the plan page.
"My domain is down"Usually hosting or DNS is down; the domain itself rarely "goes down" unless it expired.
"I need to move my domain to the new host"Often you only need to change DNS; a transfer is optional.
"The host owns my domain"It should be registered to you. Check the registrant details.

Quick checklist before you buy

  1. Domain: check the renewal price, not just the first year.
  2. Domain: make sure you are the registrant, with an email you will still read in five years.
  3. Hosting: check the renewal price and the term you are locking into.
  4. Hosting: match the plan to static vs dynamic. A simple portfolio does not need cloud hosting.
  5. Both: turn on auto renew for the domain once you are sure, so a missed email does not cost you your name.

Our verdict

The domain is your address; hosting is the house. Most websites need both, and you can buy them together or apart. Beginners will be fine with a hosting plan that includes a first year domain, like Hostinger's, as long as they budget for renewals. If you want flexibility, register the domain separately at a registrar such as Namecheap and point it at any host. To register your first one, follow how to register a domain, and find more in the web hosting hub, including small business web hosting.

Questions people ask

What is the difference between a domain and web hosting?

A domain is the name people type to reach your site, like example.com. Hosting is the server that stores the site's files and sends them to visitors. The domain points to the hosting through DNS. You rent a domain from a registrar by the year, and rent hosting from a hosting company by the month or term.

Do I need both a domain and hosting?

For a normal website, yes: one is the address, the other is where the site lives. Exceptions: website builders like Wix or Squarespace include hosting, so you just add a domain. Free hosts like GitHub Pages give you hosting with their own address. And you can hold a domain without hosting if you only want email or to reserve the name.

Can I buy a domain and hosting from different companies?

Yes, and many people prefer it. You register the domain at one company and point its DNS (nameservers or records) at your host. The upside: if you change hosts later, your domain stays put and you only update the DNS. The downside: two bills and two logins to keep track of.

Is a free domain with hosting really free?

Usually for the first year only. Hostinger's web hosting plans, for example, list "Domain - free for 1 year." After that you pay the registrar's renewal price for that domain. Check the renewal price before you pick a name, especially for unusual extensions, which can renew at higher prices.

Do I own my domain name?

No. Mozilla's web docs say you cannot buy a domain name; you pay for the right to use it for one or more years, and you can renew it. ICANN says registering creates a contract between you and your registrar. Keep it renewed and your contact email current, or you can lose it.

What happens if my hosting expires but my domain does not?

Your address still exists but points to nothing working, so visitors see an error or a parking page. Your files may be deleted after the host's grace period. Renew the hosting, or move the site to a new host and point the domain's DNS there. The domain itself is unaffected.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. MDN Web Docs: What is a domain name?, checked 4 Dec 2026
  2. MDN Web Docs: What is a web server?, checked 4 Dec 2026
  3. ICANN: Registering a domain name, checked 4 Dec 2026
  4. ICANN: Domain name registrants, checked 4 Dec 2026
  5. Hostinger web hosting plans, checked 4 Dec 2026