Basic Guide to How DNS works
I’ve had to explain this a few times lately so I thought I would put it in a post. This is a very simplified description of how the internet works with respect to domain names! How does your browser know where to go when you type in example.com? With this understanding, you will understand some of the steps involved in setting up your own domain name on a website.
The contents of websites are "hosted" on servers ... which are basically big computers. Each can be accessed by an "Internet Protocol" address (or IP address). This is a unique number that identifies the location of a server/computer. Think of it as a phone number.
When you type in a "Domain Name" in your browser (e.g. example.com) it needs to know where to send your request to get the content for the web page. So your request goes from your computer to your Internet Service Provider (ISP). Your ISP will say, "Hmmm. Where do I get that content from?". The ISP then sends a request to a "Domain Name System" (DNS). There are many DNS's around the world. They basically act as a phone book for the Internet. They will say example.com should go to a certain IP address (e.g. 12.34.56.78). So now your computer knows how to get content when you type in example.com. It is like looking up a name in your contacts on your phone. You know the person's name but not their phone number. This is a very much simplified version but that is basically how the internet works!
In order for the Domain Name Systems around the world to have the correct information (e.g. example.com should take you to 12.34.56.78) they rely on routinely fetching this information from a series of "DNS hosts" (sometimes referred to as "Name Server" hosts). There are a number of registered DNS hosts on the internet. So a DNS host is required to have a functioning website.
So when you want to set up a website, first you register a domain name (e.g.example.com) from a "domain registrar" (there are many of these - e.g. GoDaddy). They interact with a central repository of names on the Internet so there can't be duplicates. The domain registrar stores "Name Server" records. This information is used by the Domain Name Systems to go and fetch the "contact book" information from the DNS hosts. The Domain Name Systems will routinely contact the DNS hosts to see if there have been any updates. This is why it can take a little while for the changes to take place when you change the location of where you are hosting your website. Usually, it is inside of an hour but it can be up to 24 to 48 hours. This is known as "propagating".
To make matters even more confusing some Domain Name Registrars provide DNS hosting, some web hosts provide it, and there are some stand alone companies that do it. Some are free and some are paid for services.
Hopefully, that provides some context! You are ready to move on to setting up your domain name.












