Tutorial

How to put your website online: domains and hosting

Your website needs three things to exist on the internet: a name, a computer, and a connection between them. That is domains and hosting, and it is simpler than the industry makes it look.

The three pieces

PieceWhat it isWhat you pay for
DomainYour address: parhodev.comYearly rental from a registrar
HostingA computer that stays on and serves your filesMonthly or yearly plan
DNSThe connection: tells browsers which computer your name points toUsually included free

The key insight beginners miss: buying a domain buys only the name, not the hosting and not the website. They are three separate decisions from (often) three separate companies.

Step 1: the domain

Buy from a registrar, the companies licensed to sell names. A new .com typically costs $8 to $20 per year. It is a rental: stop paying and the name goes back on the market. Turn on auto-renewal the day you buy it; expired domains are how businesses lose their address overnight.

Pick something short, spellable over the phone, and free of hyphens if you can. Check the name on social handles too, before you commit.

Step 2: the hosting

Three common options, honest trade-offs:

TypeBest forTrade-off
Shared hostingSimple sites, blogs, portfoliosCheapest; you share resources with strangers
VPSApps, anything with real trafficYour own slice of a server; you manage more
Static hostingHTML/CSS/JS sites with no backendOften free or nearly; no server code runs

Start small. You can move a site to bigger hosting in an afternoon; you cannot unspend a year of overpowered server bills.

Step 3: connect them with DNS

Your host gives you either nameservers (like ns1.hostingprovider.com) or an IP address. You enter those at your registrar:

  • Nameservers: hand your whole DNS management to the host. Simplest option.
  • A record: point your domain at the host's IP address yourself. More control, slightly more to understand.

Then wait. DNS changes need time to spread worldwide, commonly up to 24 to 48 hours. If the site doesn't appear immediately, that is usually why. Don't keep changing settings in a panic; every change restarts the clock.

Step 4: HTTPS, free

There is no reason to launch without HTTPS anymore. Let's Encrypt is a nonprofit certificate authority that issues free certificates, valid for 90 days and renewed automatically by software on your server. Most decent hosts offer it as a one-click option. Browsers warn users about non-HTTPS sites, so treat this as part of launch, not an upgrade.

Mistakes that cost beginners real money

MistakeWhat happens
Buying the biggest hosting plan "to be safe"You pay for capacity you'll never use; start small and scale
Letting the domain expireYour address goes back on sale; renewal reminders go to old email addresses
Building on a free subdomain foreveryoursite.freehost.com builds their brand, not yours, and you can't take it with you
Ignoring who owns the domainIf your developer registered it in their account, they own your address; always register in your own

Worked example: from buying a domain to a live site

Follow this order for a first site. Keep the logins for the registrar and the host in a password manager as you go.

  1. Search for the name at a registrar and check the full spelling, including the ending. Add the domain to your account, turn on auto renewal, and confirm the contact email on the account is one you still read.
  2. Buy a hosting plan and note the details the host shows for connecting a domain. Most hosts display either two or more nameserver addresses or the IP address for an A record.
  3. Decide which connection method to use. If the host will manage DNS, open the domain settings at the registrar and replace the default nameservers with the ones the host gave you. If you keep DNS at the registrar, add an A record for the root domain pointing to the host IP address, and a matching record for the www name if your host asks for one.
  4. Upload your site files to the hosting account, or install your site software there, while DNS is spreading. The files can wait on the server before any visitor can reach them.
  5. Wait for propagation. Check the domain at intervals over the next few hours. Different networks update at different times, so a friend may see the site before you do, or the other way round.
  6. Once the domain reaches the host, turn on HTTPS in the hosting control panel and set the site to redirect the plain http address to https. Test both the www and the plain version of the address, and test a contact form if the site has one.

Where beginners usually get stuck

The first sticking point is editing DNS in the wrong place. If you changed the nameservers to the host, records added later at the registrar will have no effect, because the host now answers DNS queries for the domain. Make your records where the nameservers point.

The second sticking point is expecting HTTPS to work before DNS has finished spreading. A certificate can only be issued once the domain points at the server that requests it. If the control panel reports a failure, check that the domain resolves to the host first, then try the HTTPS step again after propagation has settled.

Frequently asked questions

Can I buy the domain and hosting from the same company?

Yes, and it's simpler for a first site. Just know they're separate products; keeping the domain at an independent registrar makes switching hosts easier later.

How long does going live actually take?

The work takes an hour. DNS propagation takes up to 48 hours. Plan launches with that delay in mind.

Do I need hosting for a simple portfolio?

Not necessarily paid hosting. A static site (HTML, CSS, JS) can live on free static hosting; you only pay for the domain.

Last verified: October 23, 2026, against MDN Web Docs and Let's Encrypt documentation. Prices and plans change; check current registrar and host pricing before buying.

Want launch handled for you?

We build, deploy, and launch: domain, hosting, HTTPS, and go-live.

Get a quote →

← All tutorials