We often get asked questions about domain names and hosting. Many beginners confuse the two or are not entirely sure how they are linked or work together. In this guide, we are going to explain the difference and how they work together.
What is a Domain Name?
A domain name is a website address, for example, our domain name is wpwebsitemanagement.co.uk. You buy a domain name from a registrar (a service that sells domains and will register it for you). You will often pay for your domain on a yearly or several year bases. As long as you continue to pay for it then the domain is yours only. If you stop paying for your domain then it goes back into circulation for others to buy and use.
Your domain is used to access your website, your website (website files, images, code and design) is stored on a host.
If you have a domain alone then you will not be able to display a website, similarly, if you have hosting alone then you will not be able to display a website.
What is Web Hosting?
Website hosting is essentially a storage place for all the files and code that make up your website. Without hosting you can not have a website. Hosting comes in many shapes and sizes, from super cheap very basic (often slow) hosting too much more professional hosting solutions.
How do Domains and Web Hosting Work Together?
Let’s say you have your web hosting sorted and your site files in place, you also have a domain registered. Your site may still not show just yet, you see these are two separate services that need each other and they need to link together to display a website. Every hosting environment has its own unique address known as an IP until you tell your domain to point to that, it will not show your website files and translate that to showing your website in an internet browser.
You may often hear this process referred to as editing the DNS or nameservers at the domain. This basically means telling to the domain where the website files are and to point to them.
What about moving or changing host?
Put simply moving host is basically storing your site files in a different place. All you should need to do is update the domain to tell it to point to the new location and load the files.
This is often where people get confused. When you first set up your website you may well have got the domain and hosting together meaning you may not have had to do all this pointing domain to xyz host.
For whatever reason, you have chosen to move hosts and now it all seems noodle soup of technical jargon! Don’t fret is very simple when you break it down.
Let’s give a couple of examples.
1.) You may want to keep your website, its design, how it looks and functions exactly the same and just move hosting providers. In basic terms what needs to happen is you copy all your site files and folders to the new host and then tell your domain to point itself to the new hosting environment. This will then mean that when people visit your domain they will be seeing the same site in the visual sense BUT its loaded from the new host rather than the old one (basically your old host and files are no longer used).
2.) The other common questions are getting a new host and new website, design or just tweaking your current design. The process is basically the same but with one difference, the files on your new host would be different in the sense that they now have code for the new or tweaked design. You may achieve this by first copying your files over and then tweaking the design or you may get new hosting a get a totally new website.
The basics are the same though, once you have the new site files in place on the new host you simply tell your domain to point to the new host and serve up the new website design.
What is this propagation thing I hear people talk about? Well, this in basic terms means the period of time it takes for your domain to point to the new host once you have told it to do so. This isn’t an instant change. Once you tell your domain to point to the new host it can take anywhere from a couple of hours to 48 hours and in rare cases even up to 72 hours to take effect across the internet.
The reason for this is that ever internet service provider has their own cache system and the change can take a while to take effect across all providers and countries. It’s nothing to worry about though. Once you make the change all you do is wait, while the change is taking effect your old site will continue showing. Once the change has happened you will start seeing your new site served from your new host.
You see both domain and hosting are needed to have a website show on the internet. We hope this clarifies the confusing topic of domain and hosting, please do check out our infographic below which might help make this clear for you.