A domain name is the human-readable address you type into a browser to reach a website — for example, example.com. Behind the scenes, every domain name maps to a numeric IP address through a global system called the Domain Name System (DNS). Understanding how domain names work helps you make smarter decisions about registration, hosting, and troubleshooting.
Anatomy of a Domain Name
A fully qualified domain name (FQDN) is made up of labels separated by dots, read from right to left in terms of hierarchy. Each part has a specific name and role:
- Top-Level Domain (TLD) — the rightmost label, such as
.com,.org, or.uk. The TLD defines the highest level of the domain hierarchy. - Second-Level Domain (SLD) — the label immediately to the left of the TLD, such as
exampleinexample.com. This is the name you register with a domain registrar. - Subdomain — any label to the left of the SLD, such as
wwworblog. Subdomains are created and managed in your DNS zone and do not require separate registration.
; Anatomy of a domain name
; subdomain . second-level-domain . top-level-domain
blog . example . com
; Full URL broken down
https://blog.example.com/article
^ ^^^^^^^ ^^^
| | |
subdomain SLD TLDIn DNS zone files, a trailing dot after the TLD represents the invisible DNS root (the very top of the global hierarchy). You will see this in raw zone data: example.com.
How a Domain Name Maps to an IP Address
When you type a domain name into your browser, a process called DNS resolution converts it into the numeric IP address of the server that hosts the website. The process works as follows:
- Your browser checks its local cache for a previous answer.
- If not cached, your operating system asks your configured DNS resolver (usually provided by your ISP or a service like
8.8.8.8). - The resolver checks its own cache. If the record is absent, it queries the DNS root servers.
- The root servers direct the resolver to the authoritative nameservers for the TLD (e.g., Verisign for
.com). - The TLD nameservers direct the resolver to the authoritative nameservers for the specific domain.
- The authoritative nameservers return the A record (IPv4) or AAAA record (IPv6) for the domain.
- Your browser connects to the returned IP address and loads the website.
The entire process typically takes under 100 milliseconds and results in cached records being reused until the TTL (Time to Live) expires.
# Check what IP address a domain resolves to
dig example.com A @8.8.8.8
# See the full delegation chain (trace)
dig example.com A +trace
# Quick lookup with nslookup
nslookup example.com 8.8.8.8Registering a domain name does not automatically create a website. The domain must point to DNS nameservers that hold DNS records directing traffic to a web server. Your registrar and your hosting provider are often two different companies.
Domain Registrar vs. Registry vs. ICANN
Three distinct organisations play roles in the domain name ecosystem:
| Organisation | Role | Examples |
|---|---|---|
| ICANN | Governs the global domain name system, accredits registrars, delegates TLDs to registries | ICANN (sole entity) |
| Registry | Operates the authoritative database for a specific TLD; sets pricing and policies | Verisign (.com, .net), PIR (.org), Nominet (.uk) |
| Registrar | Sells domain registrations to the public on behalf of registries; manages renewals | Namecheap, GoDaddy, Google Domains, Cloudflare |
When you register example.com, you purchase the right to use that name from a registrar. The registrar records your ownership in the registry's database, and ICANN sets the overarching rules for the entire system.
Domain Extensions: gTLDs and ccTLDs
Domain extensions fall into two broad categories:
- Generic Top-Level Domains (gTLDs) — open to registrants worldwide and not tied to a specific country. Examples include
.com,.org,.net,.info, and the newer ICANN-authorised extensions such as.app,.io, and.dev. - Country Code Top-Level Domains (ccTLDs) — two-letter extensions assigned to specific countries or territories. Examples include
.uk(United Kingdom),.de(Germany),.au(Australia), and.ca(Canada). Some ccTLDs are used commercially regardless of geography, such as.io(British Indian Ocean Territory) and.co(Colombia).
For most businesses, .com remains the most recognised and trusted extension globally. If .com is unavailable, consider the ccTLD for your target country or a relevant gTLD like .co, .io, or .app. Avoid obscure extensions that may confuse users or be filtered by spam systems.
The WHOIS Database
The WHOIS database is a public directory that stores registration information for domain names. A WHOIS record typically contains the registrant's name and contact details, the domain's registration and expiry dates, the registrar name, and the authoritative nameservers.
You can look up WHOIS data from the command line:
# Look up WHOIS data for a domain
whois example.com
# Key fields to check:
# Registrar: who the domain is registered through
# Expiry Date: when the domain registration expires
# Name Server: the authoritative nameservers
# Domain Status: active, clientHold, serverHold, etc.Since GDPR came into effect in 2018, much of the personal registrant data in WHOIS records has been redacted for domains registered by individuals in the EU. You will often see privacy-protected proxy details instead of the registrant's real contact information.
How to Register a Domain Name
Registering a domain is straightforward:
- Choose a registrar (Namecheap, Cloudflare, GoDaddy, Google Domains, etc.).
- Search for your desired domain name to confirm it is available.
- Select a registration period (typically 1–10 years).
- Complete the registrant contact information required by ICANN.
- Enable auto-renew to avoid accidental expiry.
- Point the domain to your hosting nameservers or configure DNS records directly.
Domain registrations must be renewed before they expire. If a domain lapses, it enters a grace period during which you can still renew, followed by a redemption period (often with a significant fee), and finally deletion and release back to the public.
To verify the nameservers and DNS records of any domain, use the ShowDNS DNS Lookup tool.
Frequently Asked Questions
What is the difference between a domain name and a URL?
A domain name (e.g., example.com) identifies a website at the DNS level. A URL (Uniform Resource Locator, e.g., https://example.com/about) is the complete address for a specific resource and includes the protocol, domain name, and path. The domain name is one component of the full URL.
Can I register any domain name I want?
You can register any available domain name that conforms to the registry's policies and does not infringe on trademarks. Domains are issued on a first-come, first-served basis. If a domain is already registered, you cannot take it unless you purchase it from the current owner or it expires and becomes available again.
What happens if I don't renew my domain?
If a domain is not renewed before its expiry date, it typically enters a grace period (around 30–45 days) during which you can renew at the standard price. After that, it enters a redemption period (up to 30 days) where recovery is possible but expensive. Once the redemption period ends, the domain is deleted and released back to public registration.
What is domain privacy (WHOIS privacy)?
Domain privacy, often called WHOIS privacy or privacy protection, replaces your personal contact details in the public WHOIS record with proxy information provided by your registrar. This prevents your name, address, and email from being publicly visible. Many registrars offer this service free of charge.
How long does it take for a new domain to work after registration?
A newly registered domain typically begins resolving within minutes to a few hours once nameservers are configured. Full global propagation across all DNS resolvers can take up to 24–48 hours, though most users will see the domain resolve within a few hours. You can monitor propagation with the ShowDNS DNS Propagation Checker.