Explore WaseerHost

Appearance

BlogDomains 10 min read

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

A domain name is your site's address; web hosting is where its files live. How they connect, buying them separately, and what happens when either expires.

Waqas Ahmed Waseer, authorWaqas Ahmed WaseerFounder & CEO
Updated
Web Hosting vs Domain Name: What's the Difference?

Summarize with:

Share:

A domain name is the address people type to reach your website. Web hosting is the server space where the website's files are stored and served from. You need both for a working site, but when you compare web hosting vs domain name, the key point is that they are separate services. You can buy, renew and move each one on its own.

Key takeaways

  • A domain name is a registration you renew with a registrar. Web hosting is a server service you rent from a host.
  • DNS connects them: either your domain uses your host's nameservers, or an A record at your current DNS provider points the domain to the host's IP address.
  • You can buy them from different companies, and you can change hosts without transferring your domain.
  • When a .com or other generic domain expires, ICANN rules give you time to renew, but your website and email stop working while DNS is interrupted.
  • If hosting lapses, the domain stays registered but has nothing to show. Keep backups either way.

Web hosting vs domain name: the short answer

Think of a shop. The domain name is the street address on the sign and in the directory. The web hosting is the building where the stock, the till and the staff actually are. DNS is the directory entry that tells visitors which building sits at that address.

You can move the shop to a new building and keep the same address; you just update the directory. You can also keep the building and change the company that manages your address. The two are linked, but they are not the same thing, and you pay for them separately even when one company sells both.

What a domain name is

A domain name such as yourbusiness.com is registered through a registrar for a set period and then renewed. You are the registrant: the person or company the registration belongs to. For generic top-level domains (.com, .net, .org and the like), registrars follow ICANN policies on renewals, expiry and transfers.

The domain itself stores no website files. What it carries is a pointer: the list of nameservers that answer questions about the domain. Those nameservers hold the DNS records that say where the website lives (A and AAAA records) and where email for the domain should be delivered (MX records). If you are not sure which registrar holds your domain or which nameservers it uses, a WHOIS lookup shows both.

You can search for and register a new name on the WaseerHost domains page.

What web hosting is

Web hosting is a server, or a share of one, that stores your site's files and databases and runs the software that turns them into web pages. It has an IP address, and your domain must point to that address.

Hosting plans usually also include tools to manage the site. Every WaseerHost hosting plan uses cPanel, runs on the LiteSpeed web server with NVMe storage, and includes free SSL certificates. You can see current shared hosting plans for what each plan includes.

Domain vs hosting compared

Domain nameWeb hosting
What it isA registered name in the DNSServer space and software that run your site
What it doesTells visitors' browsers where to goStores files and databases and serves the pages
Who provides itA domain registrarA hosting company
How you payRegistration term, then renewalPlan term, then renewal
What you manageContact details, nameservers, DNS records, renewalWebsite files, databases, email accounts, SSL
If it lapsesWebsite and email at that name stop resolvingSite goes offline; the domain stays registered
Can you move itYes, by transferring to another registrarYes, by copying the site to a new host and updating DNS

How a domain connects to hosting

There are two common ways to point a domain at a hosting server.

  1. Change the nameservers. At your registrar, replace the domain's nameservers with the ones your host gives you. The host's DNS servers then answer for the whole domain, and you manage records in the host's control panel (in cPanel, that is the Zone Editor). This is the simplest option when one host handles both your website and email.
  2. Keep your DNS where it is and add records. Leave the nameservers alone and create an A record (and an AAAA record if the host gives you an IPv6 address) that points the domain at the hosting server's IP address. This suits you if your DNS is already managed somewhere else, for example because email runs on a separate service.

An NS record names a host that "should be authoritative" for the domain, and an A record holds a 32-bit internet address (RFC 1035). MX records matter too: mail servers look them up to decide where to deliver messages for your domain (RFC 5321), so moving DNS without copying the MX records breaks email.

To see how a domain is set up right now, run these on macOS or Linux, or use the WaseerHost DNS lookup tool:

bash
dig NS yourbusiness.com +short
dig A yourbusiness.com +short
dig MX yourbusiness.com +short

For a deeper look at how nameservers work and how to change them safely, read what nameservers are and how to change them.

Can you buy a domain and hosting separately?

Yes. Nothing requires the registrar and the host to be the same company. Both setups are common.

Same company. One account and one bill, and the host can often set up the DNS for you. The trade-off is that both services sit behind one login.

Different companies. Changing hosts never touches the domain registration, and a problem with one account doesn't lock you out of the other. The trade-off is that you connect them yourself, using nameservers or an A record as above.

Whichever you choose, make sure the domain is registered in your own name (or your company's) with an email address you control. Renewal reminders and transfer approvals go to that address.

Moving one without the other

Changing hosts and keeping your domain

ICANN's registrant FAQ notes that you may be able to change web-hosting providers instead of registrars, and that you can update your domain's nameservers or the hosting IP address it points to (ICANN). In practice:

  1. Set up the new hosting account.
  2. Copy the website files, databases and email accounts to it.
  3. Test the site on the new server before changing DNS.
  4. Update the nameservers, or the A record, to point at the new host.
  5. Keep the old hosting active until DNS changes have spread and email is flowing to the new server.

WaseerHost offers free website migration if you would rather have the copy done for you.

Transferring your domain and keeping your hosting

A registrar transfer moves the registration to a new registrar; your website can stay where it is. You usually need an authorization code (also called an Auth-Code, EPP or transfer code) from your current registrar, and the domain must be unlocked. ICANN says a registrar may deny a transfer within 60 days of the initial registration or of a previous transfer (ICANN).

Before you start, write down the current nameservers and DNS records. After the transfer, check that they are unchanged so the site and email keep working.

What happens when either one expires

When a domain expires

For generic TLDs, ICANN's Expired Registration Recovery Policy (ERRP) sets the minimum rules (ICANN ERRP):

  1. Reminders. Your registrar must send at least two renewal reminders, about one month and about one week before expiry, and one more within five days after expiry if the domain has not been renewed or deleted.
  2. DNS interruption. After expiry, the registrar must interrupt the domain's DNS resolution. If the domain is deleted eight or more days after expiry, the interruption covers at least the last eight consecutive days during which you can still renew. ICANN warns that this stops services such as your website and email (ICANN).
  3. Renewal window. You must be allowed to renew from the moment of expiry through that interruption period. If the registrar redirects web traffic during this time, the page has to say clearly that the domain has expired and explain how to renew.
  4. Auto-Renew Grace Period (optional). Some registrars offer a period of 1 to 45 days in which you can renew an expired domain, possibly for a fee. ICANN notes that, depending on the registrar's terms, the domain may become available to others during this period.
  5. Redemption Grace Period. Once the registrar deletes the domain, gTLD registries (except sponsored gTLDs) must offer a 30-day Redemption Grace Period in which your registrar can restore it for you. Registrars may charge a redemption or restore fee, and they must publish their renewal and restore fees.

The ERRP is written for gTLD registrations. If your domain ends in a country code such as .uk or .de, check your registrar's terms for the rules that apply. The simplest protection is auto-renew plus a payment method and email address that are up to date.

ICANN's short video explains what to do if you forget to renew:

When hosting expires

Hosting expiry is governed by your host's terms, not by ICANN. Typically the account is suspended and the site goes offline. If the account isn't renewed, the files, databases and mailboxes on it may eventually be removed. The domain stays registered and keeps pointing at that server, but there is nothing there to serve.

Two habits help with both kinds of expiry: keep your own backups of the site and email, and put both renewal dates in your calendar.

Which do you need first?

To launch a website you need both, and the order rarely matters if you set them up the same day. If the name matters to your business, register it first so nobody else takes it, then add hosting and connect the two.

Frequently asked questions

Only if you want something to load at that domain. A registered domain with no hosting behind it shows no website of yours. If you only want to reserve the name for now, you can register it and add hosting later.

Waqas Ahmed Waseer

Written by

Waqas Ahmed Waseer

Founder & CEO

Founder and CEO of Wasevo LLC, the company that runs WaseerHost. He works on cPanel/WHM servers, WHMCS billing and the Next.js storefront.

Related Articles

Get new guides by email

One short email when we publish something useful. No spam; unsubscribe at any time.

Free SSL · Free migration · 24/7 support

Find your domain

Search domains
30-day money-back guarantee

Renews at the same price for the term you choose