Look at the address bar on any website. That single line holds a protocol, a name, and sometimes a path to one page. The readable name in the middle, such as example.com, is the domain name. People who ask what a domain name is in a website are asking about that piece: the part visitors type, share, and remember. Nothing else in that line is the name itself. Pages make up the website. Hosting is the service that stores those pages. The sections below keep those three jobs separate, and every sample uses example.com so the name stays a sample rather than a real brand.
What a domain name is on a website
A domain name is the readable name of a website, such as example.com. It is the part of the address people type, share, and remember. The site's server is found by a numeric IP address. The Domain Name System matches the domain name to that address so the browser can open the website.
Computers on the internet find one another with numbers. An IP address such as 192.0.2.1 suits machines and makes a poor public address. People rarely remember a long number, and the number behind a website can change when the site moves to another server. The domain name can stay the same while that numeric address is updated in DNS.
ICANN, which coordinates policy for the global naming system, describes a domain name as a unique name behind the addresses people use to reach web pages, mail servers, and other resources. One registration points to one holder. Two unrelated parties cannot both hold the identical name at the same time.
example.com is reserved for documentation under RFC 2606. That is why it appears here, and why it is the wrong name to register for a real project.
Which part of a website address is the domain name
Take this address as a working model: https://www.example.com/pricing.
The labels in a website address
Each piece has one job:
httpsis the protocol, the rule the browser uses to connect.wwwis a subdomain, a label to the left of the registered name.exampleis the second-level domain, the name you choose..comis the top-level domain, the extension./pricingis the path to one page.
The registered domain name in that line is example.com. ICANN uses the same split on its own site: in a longer address, icann.org is the domain name, and the rest of the line selects a page inside that domain.
DNS rules in RFC 1035 limit each label to 63 characters. An ordinary label uses letters, digits, and hyphens, and a hyphen cannot sit at either end. Capital letters do not create a second name: Example.com and example.com match. Labels written in other scripts follow a different rule, covered in the questions at the end.
www and other subdomains
www.example.com is a hostname on the registered domain, not a second product you buy. shop.example.com is another hostname on that same registration. The holder creates those labels in DNS. They are not separate domain registrations, and removing www from the address does not produce a new domain name.
How a domain name reaches the website
Typing the name starts a short lookup. The browser is trying to learn which server should answer.
- The browser checks its own cache for an IP address it already learned for that name.
- If nothing useful is stored, a recursive resolver continues the question through DNS.
- The authoritative nameserver for the domain, the server designated to answer for that name, returns the address on record.
- That answer is an IP address the browser can contact.
- The web server at that address sends the page, and the browser displays it.
Each DNS answer carries a time to live, or TTL, which is the number of seconds a resolver may keep the answer before asking again. The DNS standard defines that timer. A cached answer can therefore outlive a recent change. There is no single clock that fits every network: some viewers see the new address in minutes, and others still have the old one until the cached copy expires. A phone network or an office can hold its own copy, separate from the cache on your computer.
How a domain name differs from the website and from hosting
Four separate things get talked about as if they were one purchase.
A domain name is the address visitors use. The website is the pages and files. Hosting stores those files and answers visitors. A URL is the full address of one page, and the domain name is only one piece of that line. Registering the name, with no files on a host, gives the browser nothing of yours to show.
People often expect the website to appear the moment the registration receipt arrives. In HostCry support, the pattern is familiar: the name is registered, and the browser still shows a registrar or server placeholder because the site files were never published, or the name was never pointed at web hosting.
Which kind of domain name a website can use
Endings fall into a few groups. The useful choice is the group that matches the audience, not a long catalog.
- A worldwide site, where the brand matters more than a place, usually fits a generic ending such as .com, .org, or .net.
- A site aimed at one country may fit that country's code, such as .de or .jp, after you read that registry's eligibility rules.
- A newer generic ending can describe the work itself, such as a shop or a design studio, as long as visitors will still recognize it.
A few extensions are closed. .gov and .edu, for example, accept only qualifying organizations. Country-code registries set their own tests. Some ask for a local presence or extra documents, and those tests are published by the registry, not by a rule you can guess from the two letters.
Many people still assume a name ends in .com, so any other ending has to be easy to say. The current list of top-level domains is the IANA Root Zone Database. New endings are added over time, so a copied list goes stale.
Who controls a domain name
Payment buys a term of control. ICANN's own guidance treats that payment as closer to a lease than to a permanent purchase: you do not hold the name forever, and control continues only if you renew before the term ends. Term length depends on the registry. On many generic extensions, ICANN notes that registrars sell yearly steps and that the remaining term does not exceed ten years. If the name expires and is not restored, another person can register it.
Three parties complete a registration:
- The registrant is the person or organization that holds the name for the current term.
- The registrar is the company that takes the order, checks the registry's requirements, and sends the registration through.
- The registry operator keeps the master database for that particular extension.
A public lookup can still show that the name is registered, and which registrar manages it, even when a street address or phone number is withheld from the public record. Hidden contact details do not mean the name is free.
What to check before you register a domain name
A search result that says "available" is the start of the decision, not the end of it.
A name people can say, type, and remember
Check the second-level name, the word you choose:
- Say it aloud. The spelling should match what people hear.
- Keep it short enough to type without looking twice.
- Use few hyphens, or none. Hyphens are easy to drop when someone hears the name.
- Check the word in the languages your audience actually reads, so a harmless English word is not an insult elsewhere.
Availability is a technical check
An availability search, or a WHOIS or RDAP lookup, answers one question: is this exact string already registered? It does not decide whether you may use the words as a brand. That second test is a trademark search, and it belongs with someone who can give legal advice.
Some unregistered names are offered as premium names, at a price set apart from a normal registration.
Trademark disputes over many generic extensions can go through ICANN's Uniform Domain-Name Dispute-Resolution Policy. That process is not legal advice, and it does not cover every country-code ending. During domain name registration, read the spelling until you pay. The string you submit is the string you receive.
What happens after the domain name is registered
Registration reserves the string. Connecting that name to a host and publishing the files are separate jobs, and they stay separate even when one company sells more than one of them.
- Point the name at the host, either by setting the host's nameservers or by publishing the address records the host gives you.
- Wait, then load the name again from a browser that did not perform the change.
- Publish the site files on the host. Until those files exist, the name has nowhere to send people.
- Serve the site over HTTPS with a certificate on the host.
- Turn on renewal, add a transfer lock if one is offered, and keep recovery details current.
Mail uses its own DNS records, so inboxes come later. HostCry can register the name and host the site in one account. Save the registrar login when you finish. Finishing only the registration still leaves the website offline.
Put the website on the name
A domain name in a website address is the readable name, and nothing more. The website appears only after that name points at hosting and the pages are actually published. Search the name on a registrar's current list, then add hosting only if those pages still need a server. Wait until the site opens before you put that address on a card or a profile.