
A website needs two parts to stay online: a domain name and hosting.
What is a domain name?
It is your site's internet address (for example examplesite.com). You rent it yearly from a domain registrar; you don't buy it outright, and you have to renew when the term ends.
What is hosting?
It is the space on an always-online server where your site files and database live. The domain is the address; hosting is the house.
Tips for choosing a domain
- Keep it short and memorable.
- Make it easy to say and spell; avoid hyphens and digits.
- .com is the most familiar extension; a country extension suits a country-specific audience.
- Mind trademarks. A name resembling someone else's brand can cause trouble.
- Check that the social media handle is free.
- Turn on privacy protection (WHOIS) so your personal details aren't public.
Types of hosting
| Type | Best for | Note |
|---|---|---|
| Shared | Beginners, blogs, small sites | Cheap; resources shared with other sites |
| VPS | Growing sites, custom software | More control; needs admin knowledge |
| Cloud | Sites with variable traffic | Flexible resources scaling with use |
| Dedicated server | Large organizations | Expensive |
| Managed WordPress | WordPress users | Updates and security handled by the host |
What to look at when choosing hosting
- Uptime guarantee.
- Speed: SSD/NVMe disks; is the server near your visitors?
- Free SSL with automatic renewal (see our SSL guide).
- Backups and easy restore.
- Support: in your language, quick to respond.
- Renewal price: the first year may be discounted and later cost more.
- Room to grow: is upgrading a plan easy?
What DNS does
DNS translates the domain into the server's IP address. If you bought the domain in one place and hosting in another, point the domain's name servers to the ones your host gives you. The main record types:
- A: connects the domain to an IP address.
- CNAME: makes one name an alias of another (for example www).
- MX: tells which server email goes to.
- TXT: verification and email security records (such as Search Console verification).
DNS changes can take from minutes to a few hours to propagate.
First setup steps
- Register the domain and turn on privacy protection.
- Choose a hosting plan and connect the domain.
- Activate SSL.
- Install the site (WordPress, a site builder or custom code).
- Set up domain email; a company address builds trust.
- Add Search Console and Analytics.
Security note
Add two-factor authentication to your domain account and turn on auto-renewal. If the domain is stolen, you lose your site and email. For site security, see our WordPress security guide.
Step-by-step example: choosing a domain and hosting for a website from scratch
- Choose a domain name: short, easy to say, in line with the brand; avoid hyphens and digits;
.comis common, and the target country's extension can also be considered. Check similar spellings and brand conflicts. - Register the domain in your own name: keep the owner details yours; turn on auto-renew and add 2FA to the domain account.
- Decide the hosting type: shared or managed hosting for a small blog/corporate site; a VPS/cloud for growth or special requirements (see our VPS and cloud providers guides).
- Compare hosting features: storage, traffic, SSL, backup, email, support, server location, renewal price (look at prices after the first-year discount). Prices change often; check current plan pages.
- Connect the domain to the hosting: DNS settings (A record, name servers); wait for propagation.
- Enable SSL and redirect all traffic to HTTPS (see our SSL and HTTPS guide).
- Set up business email and add SPF/DKIM/DMARC (see our custom domain email and SPF DKIM DMARC guides).
- Build the site: for platform choice see our website platforms guide, and for step-by-step set-up our website setup guide.
- Backup and monitoring: regular backups, uptime monitoring (see our disaster recovery and website monitoring guides).
DNS records: a plain glossary
| Record | What it does |
|---|---|
| A | Points the domain to an IPv4 address |
| AAAA | Points to an IPv6 address |
| CNAME | Redirects one name to another (for example www) |
| MX | Sets the email server |
| TXT | Verification and text records such as SPF/DKIM/DMARC |
| NS | The servers that manage the domain's DNS |
DNS changes can take minutes to hours (rarely longer); don't edit again straight after a change without waiting.
Common mistakes
- Registering the domain in the name of a web designer/agency; ownership should be yours.
- Not turning on auto-renew; losing a domain is a serious problem.
- Looking only at the first-year price.
- Working without backups.
- Skipping SSL and email authentication.
- Not keeping contact details current.
Frequently asked questions
Should the domain and hosting be bought in the same place? Not required; the same place can be convenient, but keeping them separate can ease moving and security.
For how many years is a domain bought? It renews yearly; buying several years can bring a discount.
WHOIS privacy? It hides personal details from the public record; check whether it's offered.
How do I move the site to other hosting? Take a file + database backup and import into the new hosting, and change DNS as the last step.
Domain security? 2FA, a registry lock and a strong password (see our account hacked and password manager guides).
Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.