Web Hosting vs. Domain: What's the Difference?

By AI Website Detector · Published · Updated

Web hosting vs. domain in one sentence: the domain is the address of a website, and web hosting is the server where the website's files are stored and delivered from.

Key takeaways

  • A website under your own name needs 2 things: a registered domain and somewhere to host the site.
  • DNS connects the 2: records on the domain point to the hosting server.
  • They can come from 1 company or from different ones, and either can be changed without giving up the other.
  • Email is a third service, directed by the domain's MX records.
Check who hosts a domain

What is a domain name?

A domain name is a human-readable address such as example.com. You register it through a registrar for a period of time and renew it to keep it. The domain itself stores no website. To see where one is registered, use the domain registrar checker.

What is web hosting?

Web hosting is a service that keeps a website on a server connected to the internet. When someone visits, that server sends the pages. Common forms are shared hosting, a virtual private server (VPS), managed WordPress hosting, cloud platforms and website builders with hosting included.

The difference between web hosting and domain name

CriterionDomain nameWeb hosting
What it isA name that people type, such as example.comSpace on a server that stores and delivers the website
JobPoints visitors and email to the right serversAnswers visitors with the pages, images and files
Bought fromA domain registrarA hosting provider
Paid asA registration that has to be renewedA plan that is billed while you use it (some free tiers exist)
Set up throughDNS records (A, AAAA, CNAME, MX, TXT)A control panel, file upload or deployment tool
If it lapsesThe address stops working and someone else may be able to register itThe site goes offline while the address stays yours
SwitchingTransfer to another registrarMove the files and data, then point DNS to the new server

How a domain and hosting work together

  1. A visitor types the domain into the browser.
  2. The browser asks DNS for the address. The domain's nameservers answer.
  3. An A (IPv4) or AAAA (IPv6) record, directly or through a CNAME, gives the IP address of a server or CDN.
  4. The browser connects, checks the SSL certificate and receives the page.

A worked example

Say you register example.com at a registrar and rent a server from a hosting company. In your DNS settings you create an A record for example.com with the server's IP address. If you later move to another host, you copy the site there and change that record. The name your visitors know stays the same.

To see the result for a real site, the Website Hosting Checker lists the web server, nameservers, mail providers and SSL certificate of any public domain.

Frequently asked questions

Do I need both a domain and web hosting?

For a website under your own address, yes: the domain is the address and hosting is where the site lives. A free subdomain from a website builder or host works without buying a domain.

Can I buy the domain and the hosting from different companies?

Yes. You connect them with DNS records at the company that runs your nameservers. Buying both in one place is simpler to set up, while separate providers make it easier to switch hosts.

Is email part of web hosting or of the domain?

Neither automatically. Some hosting plans and registrars include mailboxes, and you can also use a separate mail provider. The domain's MX records decide where email is delivered.

What happens to my domain if I change hosts?

The domain stays registered where it is. You only change the DNS records so that they point to the new server.

How can I see which company hosts a domain?

Enter it in a hosting checker. It reads the public DNS records and shows the network operator of the web server, the nameservers and the mail servers.

Find out where any website is hosted.

Open the Website Hosting Checker