CompareHostingOnline

Home / Guides / What is a domain name?

Guide

What is a domain name?

What a domain name is, how it differs from hosting, how registration and renewal work and what to check before you buy one.

By Muhammad Hamza, Founder & EditorUpdated Nov 30, 2026
A93.184.216.34AAAA2606:2800:…MX10 mail.example.comNSns1.example.netTXTv=spf1 -all

Short answer

A domain name is the address people type to reach your site, such as example.com. It is separate from hosting: the domain points visitors to the server where your site files live. You rent a domain from a registrar, usually by the year, and you control it for as long as you keep renewing it.

Last verified Nov 28, 2026 · How we test
At a glance
  • What is a domain name, in plain words?Every server on the internet is reached through a numeric address called an IP address.
  • How is a domain different from web hosting?Hosting is the computer that stores your files and answers visitors.
  • How does registering a domain work?Registration is organised in layers.

What is a domain name, in plain words?

Every server on the internet is reached through a numeric address called an IP address. Numbers are hard to remember, so the domain name system (DNS) lets people use a readable name instead. When a visitor types example.com, their device asks DNS which IP address belongs to that name, then connects to it.

A domain name is made of labels separated by dots. In blog.example.com, “com” is the top-level domain (TLD), “example” is the name you register, and “blog” is a subdomain you create yourself without paying anything extra. Only the registered part, example.com, costs money.

Owning a domain does not give you a website or an email inbox. It gives you the right to say where the name points. You still need hosting for the site and a mail service for email.

How is a domain different from web hosting?

Hosting is the computer that stores your files and answers visitors. The domain is the name on the door. They are sold separately, even though many companies sell both, and you can move either one without moving the other.

This matters when you choose providers. If your domain is registered inside your hosting account and you cancel the hosting, you can lose control of the name or have to transfer it in a hurry. Keeping the domain at a registrar you control, with its own login, makes later changes of host much simpler.

Domain nameWeb hosting
What it isThe address of your siteThe server that stores and serves your site
Who sells itA registrarA hosting company
Typical billingYearlyMonthly, or prepaid for 1 to 3 years
What happens if it lapsesThe name stops working and can be registered by someone elseThe site goes offline and data may be deleted
Can you move it?Yes, by a registrar transferYes, by copying the site

How does registering a domain work?

Registration is organised in layers. A registry runs each extension (Verisign runs .com, for example). Registrars are the shops that sell names on the registry’s behalf. ICANN sets the policies registrars must follow, including the rules for transfers and for the contact data held for each domain.

  1. Search for a name

    A registrar checks whether the name and extension are free.

  2. Register for a term

    You pay for 1 to 10 years. The registry records the name in your account.

  3. Set your contact details

    Use an email address you will keep and read. Renewal and transfer notices go there.

  4. Point it somewhere

    Set nameservers or DNS records so the name reaches your hosting.

What does a domain really cost?

The advertised price is usually the first-year price. Common extensions cost from a few dollars to a few tens of dollars a year, and premium or country-specific extensions cost more. Many registrars discount the first year and renew at the normal rate, which is the same pattern we see with hosting plans.

Before you buy, check four numbers: the first-year price, the renewal price, the price of WHOIS privacy if it is not included, and the transfer-out rules. A domain that costs less in year one but more in year two is not cheaper over five years.

  • First-year price versus renewal price.
  • Whether privacy protection is free or an add-on.
  • Whether there are fees to transfer the domain away.
  • Whether the registrar sells you useless extras by default at checkout.

How do you choose a good domain name?

Short names are easier to remember and to type on a phone. Say the name out loud: if you have to spell it, it is probably too hard. Avoid hyphens and numbers that people will mistype, and avoid names that are very close to a well-known brand, which can cause legal trouble as well as confusion.

A .com is still the safest default for a global audience. A country extension suits a business that serves one country, and newer extensions such as .shop or .dev can describe what you do. Whichever you choose, also check that the same name is free on the social networks you plan to use.

What happens when a domain expires?

Registrars give expired domains a short grace period, and after it the domain can enter a redemption period during which you can still recover it for an extra fee. After that, the name is released and anyone can register it. Sites and email on that name stop working the moment it lapses.

Turn on auto-renew, keep a valid payment method on file, and use a contact email that is not on the domain itself. If the email address is at the domain that expired, you cannot receive the warnings.

Do you actually own your domain?

You do not own it forever. You hold the right to use it for as long as you keep paying. What matters is who is listed as the registrant. If a developer, agency or hosting company registered the name in their own name, they, not you, are legally the holder. Check the registrant details in your registrar account and make sure they are yours.

Which domain extension should you pick?

The extension (TLD) is the part after the last dot. .com is the default most visitors try first, and it carries no region. Country-code extensions such as .uk, .de or .ca tell visitors and search engines which country you serve, and some require a local presence. Newer generic extensions (.shop, .dev, .blog) describe what you do and are often cheaper in year one, but check their renewal prices, which can be several times higher.

Search engines treat all generic extensions the same way for ranking, so you do not gain rankings by choosing a trendy one. What you gain is clarity for people. If you cannot get the .com, think twice before registering a long variation of it; a different short name on a good extension is usually better than a clumsy .com.

What should you do with your domain after you buy it?

First, set up two-factor authentication on the registrar account, because whoever controls the account controls the name, your site and your email. Second, turn on the registrar’s transfer lock so the domain cannot be moved without your approval. Third, decide where DNS will live; our nameservers guide compares the options.

Then connect the domain to your host with the steps in how to point a domain to your hosting, add SSL as described in what an SSL certificate is, and set up email records. If you later need to move registrars, use the domain transfer guide.

What about privacy and spam?

Domain registration data has historically been public in the WHOIS system. Many registrars now hide personal details by default or offer a privacy service that substitutes proxy details, and rules differ between extensions. Without it, your contact details can attract spam and unsolicited sales calls. Read our short note on WHOIS privacy to see what it hides and what it does not.

How do domain and hosting plans fit together when you shop?

Hosting companies often bundle a free domain for the first year. That is convenient, but check three things before you accept it: that the domain is registered in your name, that you can transfer it away without a fee, and what it costs in year two. If the answers are unclear, register the domain separately. The small extra effort protects you from being locked into one host, which matters when you compare options in our guide to choosing web hosting and when you read our web hosting overview.

Sources and further reading

Common questions

How much does a domain name cost?

Common extensions such as .com usually cost from roughly ten to twenty dollars a year, and some newer or country extensions cost more. The first year is often discounted, so check the renewal price, the privacy fee and any transfer fee before you buy.

Do I own my domain name?

Not permanently. You register it for a term and control it while you keep renewing it. What matters is that you are listed as the registrant. If a developer or agency registered it in their name, they hold the right to it, not you.

Can I have a domain without hosting?

Yes. A domain is only a name. You can register one and leave it parked, or use it for email only. You need hosting when you want to publish a website on it, and you can point it to any host later.

What happens if my domain expires?

The site and email stop working. Most registrars give a grace period and then a redemption period in which you can recover the name for an extra fee. After that it is released and anyone can register it, so turn on auto-renew.

Should I buy my domain from my host?

It is convenient, but keep control. Make sure the domain is registered in your name, that you can transfer it away without penalty and that you know the renewal price. Many people register the domain separately so a change of host stays simple.

Related

More guides

Esc

Use the arrow keys, then Enter.