Domain, hosting and website: what is the difference?

Domain and hosting in Sri Lanka explained simply: what a domain, hosting and a website each are, how they connect, and who should own each one.

Domain, hosting and website: what is the difference?

A domain is your address on the internet (yourshop.lk), hosting is the space on a server where your website lives, and the website is what people actually see: the pages, photos and forms. You need all three for a working site, and they are often bought from the same company, which is why people mix them up. Understanding domain and hosting in Sri Lanka matters because each one is renewed, owned and fixed separately, and mixing them up can lead to lost websites and email outages.

The shop on Galle Road

The easiest way to picture it is a shop.

  • The domain is the address. "Galle Road, Wellawatte" tells people where to find you. Online, "yourshop.lk" does the same job. You rent the right to use it year by year.
  • The hosting is the building. It is the physical space where everything is kept, with power, security and doors that open every day. Online, that is a server in a data centre.
  • The website is the shop inside. The shelves, displays, signboard, price tags and the person at the counter. Online, it is your pages, text, photos, contact form and WhatsApp button.

You can own an address with no building on it (a domain with nothing attached). You can have a building nobody can find (hosting with no domain pointing to it). And you can design a beautiful shop interior that has nowhere to go (a website built on a designer's laptop). Only when all three are connected do customers walk in.

Domain and hosting in Sri Lanka: side by side

DomainHostingWebsite
What it isYour address, like yourshop.lkSpace on a server that stores the siteThe pages and content visitors see
Where you get itA registrar or providerA hosting companyBuilt by you or a web designer
How it is paidRenewed every yearMonthly or yearlyOne-off build, plus upkeep
If it lapsesWebsite and email stop workingWebsite goes offlineNothing to show, or an out-of-date site
Who should own itYou, in your nameYou or your provider, on your behalfYou, including the content

Where email fits

Email is a fourth piece people forget. Your address, such as hello@yourshop.lk, uses your domain, but the mailboxes themselves usually run on a separate service such as Microsoft 365 or Google Workspace. The domain's settings tell the world where to deliver your mail.

This is why a lapsed domain is so damaging. When the domain stops, the website and the email both stop, even if the hosting and email subscriptions are fully paid.

How the three connect: DNS in one paragraph

DNS (the Domain Name System) is the internet's directory. When someone types yourshop.lk, their phone asks DNS where that name lives, and DNS replies with your hosting server's address. Separate DNS records tell other mail systems where to deliver your email. You never see this happening, but it is the link between your domain and everything else. When people say they will "point the domain" at a new host, they mean changing these records.

What happens when one part fails

Seeing what breaks helps you understand which part is which.

  1. The domain expires. Customers typing your address see an error or a parking page. Emails to you bounce. Your hosting is fine, but nobody can reach it by name. This is the most avoidable failure: keep the domain renewed.
  2. The hosting stops. Perhaps a bill was missed or the server failed. Your domain still exists, but it points at nothing. Visitors see an error. Email may keep working if it runs on Microsoft or Google.
  3. The website breaks. A plugin update goes wrong or the site is hacked. The domain and hosting are fine, but the pages show errors or warnings. Backups and maintenance are what fix this quickly.
  4. The web designer disappears. If they held the domain and hosting in their own accounts, you may not be able to renew or change anything. This is why ownership matters.

Buy them together or separately?

Both approaches work. The question is who looks after the connections.

Separately. You buy the domain from one company, the hosting from another and hire a freelancer for the website. This can suit someone technical, or a business with an IT person. You get choice, but you also manage three renewals, three logins and three sets of support when something goes wrong, and each may blame the other.

Together. One provider registers the domain in your name, hosts the site, builds it and keeps it updated. You have one point of contact and one bill. The things to check are that the domain is in your name, that you own the website, and that you can leave with everything if you need to.

LankaByte works the second way: every plan includes a new .lk or .com domain (or your own), hosting with SSL, the website built by our team, and maintenance and support. The customer owns the domain and the website. If you are buying a domain first, our guide on how to buy a .com domain in Sri Lanka walks through it, and the plain guide to web hosting covers hosting in more depth. You can also see how domains fit into our plans on the .com domain page.

Questions people ask

Can I buy a domain now and build the website later?

Yes, and it is a sensible move if you have found a good name. Registering it stops someone else taking it. Until the website is ready, the domain can show a simple holding page, and you can already set up business email on it.

Can I move my website to a different host and keep my domain?

Yes. The domain and the hosting are separate, so you can move the website files to a new host and update the domain's DNS records to point there. Your address stays the same, and done carefully, customers will not notice the move.

Do I need hosting if I only use Facebook and Instagram?

Not for social media itself, since Facebook and Instagram host your page for you. But you do not own that page, and you cannot have business email on it. A domain with at least a small website gives you a place that is yours.

Keep reading

All guides