What is a Domain Name and How Do Domains Work?
We are often asked by beginners: what is a domain name and how do domains work? Many of our beginner users confuse domain names with hosting and other services. In this beginner’s guide, we will answer what is a domain name and how domains work.
What is a Domain Name?
Domain name is the address of your website that people type in the browser URL bar to visit your website.
In simple terms, if your website was a house, then your domain name will be its address.
A more detailed explanation is: The Internet is a giant network of computers connected to each other through a global network of cables. Each computer on this network can communicate with other computers. To identify them, each computer is assigned an IP address. It is a series of numbers that identify a particular computer on the internet. A typical IP address looks like this: 18.104.22.168
Now an IP address like this is quite difficult to remember. Domain names were invented to solve this problem. Now if you want to visit a website, you don’t need to enter a long string of numbers. Instead, you can visit it by typing an easy to remember domain name in your browser’s address bar. For example, FreshSites.co.uk.
How a Domain Name works
Your browser sends a request to a global network of servers that form the Domain Name System. These servers then look up for the name servers associated with a domain and forward the request to those name servers.
These name servers are computers managed by your hosting company. Your hosting company now forwards your request to the computer where your website is stored.
This computer is called a web server. It has a special software installed (Apache, Nginx are two popular web server software). The web server now fetches the requested website and sends it to back to the browser.
How is a Domain Name Different from Web Hosting?
If the domain name is the address of your website, then web hosting is the home where your website lives. This is the actual computer where your website’s files are stored. These servers are offered as a service by hosting companies.
To create your website, you need both domain name and web hosting. However, it’s important to remember that they are two separate services, and you can buy them from two different companies.
Now you may be wondering, how would it work if you bought them from two separate companies? You just need to edit your domain name settings and enter the Name Server information provided by your hosting company. Name Server information defines where to send user requests for your domain name.
We recommend getting both your domain name and hosting from the same company. This allows you to easily manage your domain and host on the same account. You can buy domain names from many companies. These companies are called domain name registrars. A domain name typically costs 14.99 per year.
Many WordPress hosting companies offer domain name registration services, such as ourselves. This allows you to manage both services under one account, and you also don’t need to worry about changing name server settings for your domain.