أهم النقاط
- The domain is the address, hosting stores the site, and the website is the content.
- DNS connects the domain to the hosting server.
- Buying both from one provider connects them automatically.
People often use “domain”, “hosting” and “website” interchangeably. They’re three different things, and you need all three for a site to work.
The domain: your address
A domain like example.com is a name you rent yearly from a registrar. On its own it doesn’t contain anything — it’s a pointer. Through DNS, it tells browsers which server to contact, and tells other mail servers where to deliver your email.
Hosting: where the files live
Hosting is space on a server that’s connected to the internet around the clock. It stores your website’s files and database and serves them to visitors. Hosting comes in different sizes — shared hosting, WordPress hosting, VPS and dedicated servers.
The website: what visitors see
The website is the content and code: pages, images, a WordPress install, an online store. It lives on the hosting and is reached through the domain.
How they connect
Visitor types example.com
→ DNS looks up the domain's records
→ finds your hosting server's IP address
→ the server returns your website's files
What you need to buy
- A domain — renewed every year (or for several years at once).
- Hosting — billed monthly or yearly.
- A website — build it yourself (for example with WordPress) or have one built.
Buying the domain and hosting from the same provider means the connection is set up automatically. If they’re separate, you’ll point the domain to the hosting with nameservers or DNS records.