Published: 17.04.2026
Newcomers often mix up a domain and hosting, because both are needed to put a website online and both are sold together. They are different services with different jobs. Knowing the difference saves money and prevents the kind of mistakes that take a site offline.

A simple comparison
Think of a shop in a city. The domain is the address on the door: it tells people where to find you. The hosting is the building and the shelves inside: the place where your goods are stored and shown. An address without a building leads nowhere, and a building without an address is hard to find.
What a domain is
A domain name, such as example.com, is a human-readable name registered in a global database. You do not buy it forever; you rent the right to use it for a period of one to ten years and renew it. The domain itself stores no website files. It only holds records that tell the internet where to look.
What hosting is
Hosting is the computing space where your website files, databases and e-mail live. It is provided by a company that runs servers in a data centre, keeps them online and answers visitors' requests twenty-four hours a day.
How they connect
The link between the two is DNS. In the DNS zone of your domain you place an A record with the IP address of the hosting server. When someone types the domain, DNS sends them to that server. If you change your hosting provider, you only need to update these records; the domain stays where it is.
Do you need both?
- A website needs both a domain and hosting.
- Business e-mail on your own name needs a domain and a mail service, which can be part of hosting.
- A domain alone can be useful to protect a brand name or to forward visitors to another address.
- Hosting alone can run a site that is reached by IP address or by a temporary subdomain, but this is only suitable for testing.
Where to buy each
You can buy both from the same company, which is convenient: one invoice, one panel and often automatic DNS setup. You can also separate them. Many people keep the domain with a registrar they trust and move hosting when they need a bigger plan. If you separate them, make sure you can reach the DNS settings of the domain.
Costs and renewals
Domains are billed per year, hosting is usually billed monthly or yearly. They renew separately, so track both dates. An expired domain stops the site and the e-mail even when the hosting is paid, and an expired hosting plan removes the content even when the domain is valid.
Mistakes to avoid
- Registering the domain under a developer's or a friend's account instead of your own.
- Using an e-mail address on the domain itself as the only contact for that domain.
- Forgetting that hosting backups do not include the domain registration.
- Letting auto-renewal fail because of an expired card.
Frequently asked questions
Can I use my domain with any hosting? Yes. Point the DNS records to the new server or change the name servers.
Do I lose my domain if I cancel hosting? No. The domain is a separate service and stays yours until it expires.
Which should I buy first? Check that the name is free and register it first, then choose hosting. This avoids losing a good name while you compare plans.