Skip to content
HOSTIGAN
Domains

What is a domain name, and how do domains work?

A domain name is the address people type to reach your website and email. Learn how domains are built, who runs them, and how they connect to DNS and hosting.

Beginner 6 min read Updated November 24, 2026

Every website and every professional email address starts with a domain name. It is the part of the address people remember, type and share, and it is the one piece of your online presence that can stay the same for decades while everything behind it changes.

This guide explains what a domain name actually is, how it is built, which organisations are involved, and how a name gets connected to a website and a mailbox. By the end you will know the difference between a domain, DNS and hosting, and you will be ready to pick and register a name of your own.

Names for people, numbers for computers

Computers on the internet find each other with IP addresses: numbers such as 203.0.113.10 for IPv4 or 2001:db8::10 for IPv6. They are precise, but nobody wants to print them on a business card, and they change whenever a site moves to a different server.

A domain name solves both problems. You give visitors example.com, and the Domain Name System (DNS) quietly looks up which IP address that name currently belongs to. If you move to a new server tomorrow, you change one DNS record and every visitor follows automatically. The name is the stable layer; the address underneath is allowed to move.

Domain, DNS and hosting are three different things

Beginners often treat these as one product, because they are frequently bought together. They are separate, and understanding the split saves a lot of confusion later:

PartWhat it isEveryday comparison
DomainThe name you have registered, such as example.comThe name above a shop door
DNSThe records that say where the name leadsThe listing that gives the shop's street address
HostingThe server that stores and serves your site and possibly emailThe shop building itself

Because the three are independent, you can move your website to a new host without touching the domain registration. You can also keep email with one provider and the website with another, simply by pointing different DNS records to different places.

Note: A domain on its own does nothing. Until it has DNS records that point somewhere, visitors get an error and email bounces.

How a domain name is built

Domain names are read from right to left, from the most general part to the most specific. Take shop.example.co.uk as an example:

  • The root is the invisible dot at the very end (shop.example.co.uk.). Every lookup starts there.
  • The top-level domain (TLD) is the last label, here .uk. Others include .com, .eu, .nl and .de.
  • Second-level labels come next. In many countries this is the name you register (example.com). Some registries use an extra level, such as .co.uk.
  • Subdomains are anything to the left of the name you registered: shop, www, mail, blog. You create these yourself for free, in your DNS zone.

You can see the hierarchy in action with a lookup tool. On Linux or macOS:

dig +short NS com.
dig +short NS example.com

The first command lists the servers responsible for .com; the second lists the nameservers responsible for example.com itself.

What characters are allowed

The technical rules are simple. Each label may contain the letters a–z, the digits 0–9 and hyphens, may not start or end with a hyphen, and can be at most 63 characters long. The full name can be up to 253 characters. Capital letters make no difference: Example.COM and example.com are the same domain.

Many extensions also accept letters such as æ, ü or é through internationalised domain names (IDNs). Behind the scenes these are converted to an ASCII form starting with xn--, so café.example becomes xn--caf-dma.example. They work in browsers, but some older email systems and forms still struggle with them, so many businesses register an accent-free version as well.

Types of top-level domains

Top-level domains fall into two main groups:

  • Country-code TLDs (ccTLDs) such as .nl, .de, .be, .uk or .eu (which covers the European Union). Each is run by a national or regional registry with its own rules. Some require the owner to live in or have a connection to that country.
  • Generic TLDs (gTLDs) such as .com, .net, .org and newer ones like .shop or .tech. These follow policies set by ICANN, the body that coordinates the global name system.

A country extension signals that you serve a particular market and often builds trust with local customers. A .com signals an international audience. Many organisations hold both and redirect one to the other.

Who is involved: registry, registrar and registrant

Three roles keep the system running:

  • The registry operates the central database for one TLD and decides its rules and wholesale price. Each extension has exactly one registry.
  • The registrar is the company you buy the domain from. It submits your registration to the registry, handles renewals and gives you a place to manage settings such as nameservers.
  • The registrant is you: the person or organisation registered as the holder of the domain.

It matters who is named as registrant. If a business domain is registered in an employee's or a web agency's name, the business does not formally control it. Always register company domains in the company's own name, with contact details that someone actually reads.

How a domain connects to your website and email

When you register a domain, it is assigned a set of nameservers. These are the servers that hold your DNS zone, the list of records that tell the world where things are. The most important records are:

  • A and AAAA point the name to an IPv4 or IPv6 address, usually your web server.
  • CNAME makes one name an alias of another, for example www pointing to example.com.
  • MX says which server receives email for the domain.
  • TXT holds text values used for email authentication (SPF, DKIM, DMARC) and to prove ownership to services such as Google Search Console.

A simplified zone might look like this:

example.com.      3600  IN  A      203.0.113.10
example.com.      3600  IN  AAAA   2001:db8::10
www.example.com.  3600  IN  CNAME  example.com.
example.com.      3600  IN  MX 10  mail.example.com.

We go through every record type in What is DNS?, and the practical steps for connecting a name to a server are in How to point your domain to your VPS or web hosting.

Your domain and your email

A domain is also what makes an address like anna@example.com possible. Mail on your own domain looks more professional than a free webmail address, and more importantly it is portable: if you switch email provider, you change the MX records and keep every address. Your customers never need to learn a new one. See How to set up professional email on your own domain for the full walkthrough.

Common misconceptions

  • "I bought it, so it's mine forever." A registration runs for a fixed period, usually one year at a time. Miss the renewal and the name goes through a grace period and is then released.
  • "My website lives on my domain." It lives on a server. The domain only points there.
  • "Changing host means moving the domain." It doesn't. You can leave the registration where it is and change the DNS records.
  • "DNS changes are instant everywhere." The change is instant on your nameservers, but resolvers around the world cache old answers until the record's TTL runs out.

Tip: Turn on automatic renewal where your registrar offers it, and keep the payment card and contact email up to date. Expired domains are one of the most common, and most avoidable, causes of a website suddenly going offline.

In short

A domain name is a human-friendly address that you rent the right to use. It is read from right to left, from the TLD down to subdomains you create yourself. A registry runs each extension, a registrar sells it to you, and you are the registrant. DNS connects the name to the servers that actually host your website and email, which means you can change host without changing your name. When you are ready, continue with How to register a domain name.

Domains at Hostigan

Hostigan registers a wide range of extensions, and you can manage your domains alongside your web hosting, email, VPS or dedicated servers in the client area at client.hostigan.com. Search for an available name on our domains page.

Frequently asked questions

Not outright. You hold the right to use it for as long as you keep renewing the registration. If the registration lapses, the name eventually becomes available for anyone else to register.

Next in “From domain to finished website” · 2 of 8How to register a domain name: a step-by-step guide