Skip to content

When people start their first website, two words appear in every conversation: domain and hosting. They are often sold side by side, mentioned in the same sentence and sometimes even bundled in one checkout, so it is easy to assume they are the same thing. They are not. A domain is a name. Hosting is a place. Understanding the difference saves you from paying for the wrong item, from locking yourself into one provider by accident and from panicking when something breaks.

This guide explains what each one does, how the two are connected by DNS, who is responsible for which part and how to plan both without confusion. It is written for beginners, so there is no assumed technical background.

The simple picture: address versus building

The easiest way to separate the two ideas is to think about a shop in a city.

  • The domain name is the address of the shop, for example "12 Market Street". It tells people how to find you. It does not contain any goods.
  • Web hosting is the shop building itself, with shelves, a storeroom and a counter. It holds everything visitors actually see and use.

You can own an address without having a building on it. You can also have a building with no recognisable address, which makes it hard for customers to find you. A working website needs both: a name people can remember and a server that answers when somebody visits that name.

On the internet, computers find each other with numeric addresses called IP addresses. Humans are bad at remembering numbers, so the Domain Name System (DNS) was created to translate readable names into those numbers. The domain is the readable name; the hosting machine is the one with the IP address. DNS is the phone book that links them. If you want to see the formal description of how names and records work, the concepts are laid out in RFC 1034, which is listed in the references of this article.

What a domain name actually is

A domain name is a registered label in the global naming system. It is made of parts separated by dots. In "shop.example.com", "com" is the top-level domain (TLD), "example" is the name you register and "shop" is a subdomain you can create yourself without buying anything extra.

When you "buy" a domain, you are really registering the right to use that name for a period of time, normally one or more years, and you renew it to keep it. The organisations that sell registrations are called registrars. The wider system is coordinated by bodies such as ICANN, and the list of top-level domains is maintained by IANA in its root zone database. You do not need to deal with those organisations directly, but knowing they exist helps you understand why a domain is a registered record and not a file you download.

What you receive with a domain registration usually includes:

  • the registration itself, tied to your contact details as the registrant;
  • access to a control panel where you manage DNS records and nameservers;
  • renewal and expiry settings, including auto-renew options;
  • lock and transfer settings, which protect the name from unauthorised moves.

What you do not receive is a website. A freshly registered domain, left alone, shows either nothing or a parking page from the registrar.

What web hosting actually is

Web hosting is a service that rents you space and computing resources on a server that is connected to the internet all the time. Your website files, images, scripts and database sit on that server. When a visitor opens your site, the server reads the right files and sends the page back.

Hosting comes in several broad types, and the details differ between providers, so always read the plan page for what is included:

Type What it means in general terms Typical user
Shared hosting Many small sites share one server and its resources Beginners, small blogs, simple business sites
VPS A virtual slice of a server with its own allocated resources Growing sites, custom software
Dedicated server A whole physical machine for one customer Large or specialised projects
Managed platform The provider maintains the software for you Owners who do not want to handle updates
Website builder Design tools and hosting combined into one product People who want to avoid technical setup

Hosting is where you pay for storage, processing power, security tools, backups and support. It is also where performance problems usually come from, which is why people compare hosting providers more carefully than domain sellers.

How the two connect: DNS records

The link between a domain and its hosting is a set of DNS records. These are small entries stored on a nameserver. The most common ones are:

Record What it does Example use
A Points a name to an IPv4 address Send "example.com" to your hosting server
AAAA Points a name to an IPv6 address Same, for IPv6
CNAME Makes one name an alias of another Point "www" to the main name or to a platform address
MX Says which servers receive email for the domain Connect business email
TXT Holds text used for verification and email policies Prove ownership, publish SPF or DMARC
NS Names the servers that answer for the domain Delegate DNS to a provider

There are two usual ways to connect a domain to hosting:

  1. Change the nameservers. Your hosting company gives you two or more nameserver names. You enter them at the registrar, and from then on the hosting company manages all your DNS records.
  2. Edit individual records. You keep the registrar's DNS and add an A record, or a CNAME, that the hosting company tells you to use. This is common when email is handled elsewhere.

After you change records, the update needs time to spread because resolvers around the world cache old answers. This delay is called propagation. It is normal, and it does not mean something is broken. Often it is complete within a few hours, though it can take longer in some cases.

Who manages what

Confusion usually appears when something stops working and you do not know whom to contact. This table helps you decide.

Task Where it is done
Register or renew the name Domain registrar
Transfer the name to another registrar Both registrars
Edit DNS records or nameservers Wherever your DNS is hosted, which is either the registrar or the hosting company
Upload pages, install software, create databases Hosting provider
Fix a slow or offline site Hosting provider, after you confirm DNS is correct
Install an SSL certificate Usually the hosting provider, with domain validation through DNS or a file
Business email mailboxes An email provider, connected through MX records

A practical habit is to keep a note of three things: where the domain is registered, where DNS is managed and where the site is hosted. In many small projects those are three different places, and forgetting that is the most common reason people edit records in the wrong control panel and see no result.

A plain example

Suppose Nina wants to open a small online shop selling handmade candles.

  1. She thinks of the name "ninacandles.example" and checks that it is available.
  2. She registers it for one year with a registrar. At this moment she owns the name, but visitors see nothing.
  3. She picks a hosting plan, installs a shop application and uploads her product photos. The hosting company gives her a server IP address and a pair of nameservers.
  4. In the registrar's control panel she either replaces the nameservers with the hosting company's, or adds an A record that points the name to the server IP.
  5. A few hours later, typing the name in a browser shows her shop.
  6. A year later she decides the hosting is too slow and moves to a different provider. She copies the site files, updates the A record to the new server and keeps the same domain. Customers keep using the same address and do not notice the move.

Notice that step 6 required no change of domain and no new registration. That is the benefit of keeping the two concepts separate.

Common mistakes and limits to watch for

  • Assuming hosting includes a domain forever. Some plans bundle a domain registration for the first term, but renewal is a separate matter. Check the terms on the plan page and put the expiry date in your calendar.
  • Registering the domain under someone else's account. If a web agency registers the name in its own name, you may struggle to prove ownership later. Make sure you are the registrant and have login access.
  • Editing DNS in the wrong place. If nameservers point to the hosting company, changes made at the registrar's DNS panel have no effect. Check where the nameservers actually point before editing.
  • Letting the domain expire. An expired domain stops working, including any email attached to it. Auto-renew and up-to-date contact email reduce this risk.
  • Expecting instant changes. DNS caching means a new record may not appear everywhere at once. Wait before concluding that it failed.
  • Confusing a domain with a trademark. Registering a name gives you the right to use it in DNS, but it does not by itself grant legal trademark rights. Choose names that do not infringe other people's brands.
  • Believing the domain controls site speed. Speed depends mostly on hosting, page weight and design. The domain only provides the name.

Because every provider organises products differently, always read what a plan or registration covers instead of assuming. Features such as email, SSL or privacy options are sometimes included and sometimes sold separately.

Which should you buy first?

There is no single correct order, but there is a sensible way to decide.

  • If you have a name in mind and are worried someone else will take it, register the domain first. Hosting can be chosen later, and a parked domain costs you little effort while you plan.
  • If you are still unsure about the website platform, take time to learn what the site needs before choosing hosting, so you do not pay for resources you will not use.
  • If you use a website builder that includes hosting, check whether you can connect a domain that you registered elsewhere. That keeps the option to move later.

Our article on buying a domain before building the website walks through the trade-offs of registering early. If this is your very first registration, what to prepare before your first domain purchase lists the details you should have ready, such as registrant information and a contact email you can access. For budgeting, see what a one-year domain registration and its extra costs involve, which explains the items beyond the basic registration so you can plan realistically.

A short checklist before you start

  1. Decide on the name and confirm it is available.
  2. Register it in your own name, with a working email address.
  3. Turn on auto-renew or set a reminder for the expiry date.
  4. Decide where DNS will be managed and write it down.
  5. Choose hosting that fits the site you actually plan to run.
  6. Connect the two with nameservers or records, then wait for propagation.
  7. Install an SSL certificate so the site loads over HTTPS.
  8. Test the site and any email addresses after the change.

Summary

A domain is the name people use to find your website, and web hosting is the server space that holds and delivers the site. They are separate products that are linked by DNS records, which means you can buy them from the same company or from different ones and can change hosting later without losing your name. Keep track of where the name is registered, where DNS is managed and where the site lives, expect a short delay after changing records and check what each plan includes before you pay. When you are ready to search for a name, you can start from the domains page and look at the options for your project.

Frequently asked questions

What is the difference between a domain and web hosting?

A domain is the human-readable name that people type to reach your site, such as example.com. Web hosting is the computer space where your site files, pages and databases are stored and served. The domain points visitors to the hosting.

Do I need both a domain and hosting to have a website?

In most cases yes. Without a domain, people have to use a numeric IP address or a long platform address. Without hosting, the domain has nowhere to send visitors. Some website builders bundle both, but they are still two functions.

Can I buy my domain from one company and hosting from another?

Yes. This is very common. You keep the domain at one provider and change its DNS records, usually an A record or nameservers, so that they point to the hosting you chose elsewhere.

If I change hosting, do I lose my domain?

No. The domain registration is separate from the hosting. When you move hosting you update the DNS records so the same name points to the new server. The domain stays registered under your account.

Which should I buy first, the domain or the hosting?

Many people secure the domain first because a good name can be taken at any time, and hosting can be chosen later once the site's needs are clear. Either order works as long as you connect them through DNS.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Ready to register your domain?

Search a name, compare extensions and pay once for the years you choose.

.com registration from $18.81 for the first year

Search domains

Keep reading

Domain & DNS Guides

Buying Your First Domain: What Information and Decisions to Prepare

Everything to prepare before buying a first domain: name ideas, accurate registrant details, a reachable email, payment, renewal choices and account security.

9 min read

Domain & DNS Guides

Can You Buy a Domain Before Building a Website?

Registering a domain first is common and fully allowed. This guide covers the reasons to do it, what happens in the meantime and what to avoid.

9 min read

Domain & DNS Guides

What Does a One-Year Domain Cost, and What Extras Should You Budget For?

A guide to the parts that make up a domain's yearly cost, from registration and renewal to privacy, taxes and optional services, and how to plan for them.

9 min read