
The difference between a domain name vs web hosting is simple: your domain name is your website’s address, like yourbusiness.com, and your web hosting is the server space where your website’s files actually live. You need both for a working website, and you connect them by pointing the domain to your host.
Beginners mix the two up all the time, partly because many companies sell them together. This guide gives you a clear analogy, explains what each one does, where you buy each, how they link up through DNS, the most common mistakes, and what happens if either one expires.
The easy analogy: address vs building
Think of your website as a shop.
- The domain name is the street address. It is what people type or click to find you. It does not hold anything by itself.
- The web hosting is the building. It holds your stock, shelves and till: your pages, images, database and email.
- DNS is the map. It tells visitors which building sits at your address.
An address with no building leads nowhere. A building with no address is hard to find. Move to a new building and you keep the same address, you just update the map. That last point is why you can switch hosts without changing your domain.
What each one actually does
The domain name
A domain name is a human-friendly label for a numeric IP address. Computers find each other using IP addresses, but nobody wants to remember a string of numbers, so the Domain Name System translates names into addresses.
Your domain is used for:
- Your website address, such as yourbusiness.com and www.yourbusiness.com.
- Your email addresses, such as sales@yourbusiness.com.
- Subdomains, such as shop.yourbusiness.com or mail.yourbusiness.com.
- Verification for services like Google Search Console, which ask you to add a DNS record to prove ownership.
You do not buy a domain outright forever. You register it for a period, usually one year at a time, and renew it to keep it.
The web hosting
Web hosting is a server that stores your website and delivers it to visitors. When a browser asks for your page, the hosting server runs your software, such as WordPress, and sends back the result.
A typical hosting plan includes:
- Storage for website files and databases.
- Email mailboxes at your domain.
- An SSL certificate for HTTPS.
- Backups, security and a control panel to manage it all.
For a full beginner’s breakdown, see what is web hosting.
Domain name vs web hosting at a glance
| Domain name | Web hosting | |
|---|---|---|
| What it is | Your address on the internet | Server space that stores and serves your site |
| Example | yourbusiness.com | A shared hosting plan with storage, email and SSL |
| Bought from | A domain registrar | A hosting provider |
| Typical billing | Yearly renewal | Monthly or yearly |
| Can you move it? | Yes, transfer to another registrar | Yes, migrate to another host |
| If it lapses | Website and email stop resolving | Website and mailboxes go offline |
Where you buy each one
Domains: from a registrar
Domains are sold by accredited domain registrars. You search for an available name, choose an extension such as .com, .co or a country code, and register it under your name. Compare the renewal price as well as the first-year price, and check that WHOIS privacy is included where available.
Hosting: from a hosting provider
Hosting is sold by hosting companies. Some also sell domains, some do not. HostRiser does not sell domain names: you register your domain wherever you prefer and point it to us. Keeping the two separate has a real benefit, because if you ever change hosts your domain stays put at your registrar and nothing gets tangled up.
Not sure what to look for in a host? Our checklist for choosing a web hosting provider covers the 12 things that matter.
How a domain connects to hosting
Your domain and hosting are linked through DNS. There are two common ways to do it.
Option 1: change the nameservers (recommended)
Nameservers tell the internet which company manages your domain’s DNS records. When you set your domain’s nameservers to your host’s, the host manages everything for you: website, www, email and SSL records. For HostRiser, that means setting:
ns1.hostriser.comns2.hostriser.com
Option 2: change individual records
You keep DNS at your registrar and add records yourself, such as an A record pointing your domain to your host’s IP address and MX records for email. This gives fine control but is easier to get wrong.
Changes take time to spread across the internet, often within a few hours but up to 48 hours in some cases. Our step-by-step guide on how to point a domain to hosting walks through both methods.
Common mistakes to avoid
- Registering the domain in someone else’s name. If a web designer registers it on their account, you may struggle to get it back. Always be the registered owner.
- Using an email address at the same domain for the registrar account. If the domain expires, that email stops working and you cannot receive the renewal reminders. Use a separate address for your registrar login.
- Letting auto-renew fail silently. An expired card is the classic cause of lost domains. Keep payment details current and turn on auto-renew.
- Mixing nameservers and records. Editing records at your registrar has no effect if the nameservers point elsewhere. Make changes wherever your nameservers point.
- Forgetting email when moving. If you change nameservers, make sure your email (MX) records exist at the new DNS provider, or mail will stop.
What happens if your domain or hosting expires
If your domain expires
Your website and email stop working, even though your hosting is still paid and your files are untouched. Most registrars give you a grace period to renew at the normal price, followed by a redemption period where recovery usually costs extra. After that, the domain can be released and anyone can register it. Exact timings depend on the registrar and the domain extension, so do not rely on them.
If your hosting expires
Your domain still exists, but it points to an account that is suspended. Visitors see an error or a suspension notice, and mailboxes at the host stop receiving mail. Hosts typically remove the account after a period, so keep your own copies of important backups.
Either way, the fix is to renew promptly. Set reminders for both, and keep your registrar and hosting logins somewhere safe.
How HostRiser fits in
With HostRiser you bring your own domain from any registrar and point it to ns1.hostriser.com and ns2.hostriser.com. We then handle the hosting side: your website, email at your domain, free SSL that is issued and renewed automatically, and daily backups. Already hosting elsewhere? Our team will move your site for free with zero downtime. See our web hosting plans or check the FAQ for common setup questions.
Frequently asked questions
Can I have a domain name without web hosting?
Yes. You can register a domain and leave it parked, or use it only for email with an email provider. To show a website at that domain, you need hosting.
Can I buy a domain from one company and hosting from another?
Yes, and many people do. You register the domain with a registrar, then point it to your host by changing the nameservers. HostRiser works this way because we do not sell domain names.
Do I own my domain name?
You hold the right to use it for as long as you keep renewing the registration. Make sure the domain is registered in your name, with an email address you control, not in the name of a designer or agency.
What happens to my email if my domain expires?
Email at that domain stops working, even if your hosting is paid. Messages sent to you will bounce until the domain is renewed and DNS starts working again.
Does HostRiser sell domain names?
No. You register your domain with any domain registrar you like, then point it to ns1.hostriser.com and ns2.hostriser.com. Your hosting, email and SSL then work through HostRiser.
Got your domain and ready for hosting? Compare HostRiser’s plans and connect your domain in minutes.
Last updated October 12, 2026


