If you are building your first website, one question comes up almost immediately: what is the difference between a domain name and web hosting? Here is the answer in plain words, with a simple picture of how the two work together.
An address and a building
Think of a shop. The domain name is the street address that tells people where to go. Web hosting is the shop itself: the building where your goods are kept and customers are served. An address with no building leads nowhere, and a building with no address is hard to find. A website needs both.
What a domain name is
A domain name is the text people type to reach your site, for example yourbusiness.lk. You register it for a set period, usually a year at a time, and renew it to keep it. It is registered through a company called a registrar. Our article on .lk vs .com helps you choose the ending.
What web hosting is
Web hosting is a service that stores your website's files, databases and email on a computer that is always on and connected to the internet. When someone visits your domain, the hosting computer sends them your pages. Good hosting is fast, backed up and secure. What each plan includes is explained in what is included with every plan.
How the two connect
Your domain holds settings, called DNS records, that say which hosting computer to ask for your site. When you buy hosting, you receive the details to put into those settings, often as two nameserver addresses. Once you save them, visitors who type your domain reach your hosting. The change can take some hours to spread across the internet.
Do I buy them from the same company?
You can, but you do not have to. Buying them together can be simpler to manage. Buying them separately keeps your domain independent from your host, which makes it easier to change hosts later without changing your address. Server Salad domain registration is coming soon, and your domain can be registered with any registrar and pointed to our hosting today.
What you need to get online
- A domain name, registered and paid for.
- A hosting plan. See how to match one to your site in which Salad plan you need.
- Your site, built with a tool such as WordPress or a website builder.
- A connection between the first two, by saving the nameservers or DNS records.
FAQ
Can I have a domain without hosting?
Yes. A registered domain with no hosting is just a name that points nowhere. You can park it until you are ready to build.
Can I have hosting without a domain?
Not in a useful way. Hosting is reached through a name, and visitors need a domain to find you.
What happens if I forget to renew my domain?
Your website and email on that domain stop working until it is renewed, and eventually someone else may register it. Turn on automatic renewal if your registrar offers it.
Do I need to move my domain when I change hosts?
No. You change the hosting settings on the domain and leave the registration where it is. See how free migration works if you are moving a site.
