Skip to content
Daleel Web

Domains & DNS

Domain vs hosting: what's the difference and what do you need?

A domain is your website's address and hosting is where its files live. Learn how they work together, where to buy each one and the mistakes beginners make.

By Daleel Web Editorial TeamPublished 2 min read
A street address sign next to a small house, illustrating a domain and its hosting

People new to websites often ask which one they should buy first. The short answer: you need both. They do different jobs and they are usually paid for separately.

What a domain is

A domain name is the human-readable address people type to reach your site, for example example.com. It stands in for a numeric IP address so nobody has to memorise numbers (MDN). You rent it, usually by the year, from a registrar.

What hosting is

Hosting is the server that stores your website's files and sends them to visitors when they arrive. A hosting account is where you install your site, whether that is WordPress, a custom app or plain HTML. It is typically paid monthly or by a longer term.

The WordPress project explains it with a house metaphor: the domain is the address and the hosting account is the house itself (Learn WordPress).

How they work together

  1. You type your domain in a browser.
  2. DNS looks up which server the domain points to.
  3. The browser requests the page from that server, which is your host.
  4. The host sends the page back.

Connecting the two is done with nameservers or DNS records. Our guide on how to point your domain to your hosting shows both options step by step.

Domain vs hosting at a glance

DomainHosting
What it isYour site's name and addressThe server that stores and serves your files
Bought fromA domain registrarA hosting provider
Typical billingYearlyMonthly or by multi-year term
If it expiresThe address stops workingThe site goes offline
Can you move it?Yes, between registrarsYes, files and database can be moved

Domain names are registered through accredited registrars within a system coordinated by ICANN (ICANN).

Where to buy each one

  • Same company: convenient, one invoice and often automatic setup. Check that you keep control of the domain and that renewal prices are acceptable.
  • Separate companies: gives you flexibility to change hosts without touching the domain. It costs a little more effort to connect them.

Whichever you choose, make sure the domain is registered in your own name or your company's name, not the web designer's.

Common beginner mistakes

  • Assuming a domain includes hosting. A domain alone does not give you a website.
  • Ignoring renewal dates. Domains and hosting expire separately. Missing a renewal can take your site down or lose the name.
  • Registering the domain in someone else's name. If you part ways with the developer, you may lose access.
  • Choosing a name that is hard to spell. See our guide on how to choose a domain name.
  • Comparing only the first-year price. Look at the renewal price too.

What to do next

  1. Pick and register your domain.
  2. Choose hosting that fits your site. Our web hosting checklist helps.
  3. Connect the domain to the hosting.
  4. Turn on auto-renewal for both.

Frequently asked questions

Do I need to buy the domain and hosting from the same company?

No. Many people do because it is convenient, but you can register a domain with one company and host the site with another. You then connect them by changing the domain's nameservers or DNS records.

Can I have a domain without hosting?

Yes. A domain is just a registered name. Without hosting it points nowhere useful, but it still belongs to you until it expires, and you can attach hosting later.

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

Your website goes offline because its files are no longer served, but you still own the domain. You can renew the hosting, or move the files to a new host and point the domain there.

What happens if my domain expires?

Visitors can no longer reach the site by that name, even if the hosting is still active, and someone else may be able to register the name after the grace period. Turn on auto-renewal and keep the contact email current.

Sources & references

  1. MDN: What is a domain name?
  2. ICANN: ICANN for Beginners
  3. Learn WordPress: How to install WordPress (domain and hosting basics)

Domains & DNS

How to choose a domain name you won't regret

Short, spellable, and free of trademark trouble. Seven practical rules for picking a domain name, plus how to choose between .com and country domains.

2 min read