DNS, Domain Name System
A high level overview of what is DNS and how it works
You don’t usually try to reach for a website using its IP address. You can, but it’s very rare.
You usually use a domain name. Like google.com, or flaviocopes.com.
This is very handy because for example I can change the server and company I use to host a website, while maintaining the same domain name.
The system that maps domain names to IP addresses is called DNS: Domain Name System.
DNS is a network of servers. Your provider will have its own DNS, your router already preconfigured to use it.
You can also choose to use Google’s DNS server, which has the IP address 8.8.8.8.
Those DNS servers will receive the requests from your computer, and in turn will ask their own reference DNS server.
The system is organized like a tree. There is one DNS server at the top, called root DNS server.
To simplify, it knows the IP address of the DNS servers that are managing each domain extension, like com, net, org and so on, including the country-specific domain extensions and the new ones like blog, dev or tech.
Those DNS servers know the IP addresses mapping of all the domains under their extension.
Of course the system is set up to ensure caching, redundancy and capacity to endure high concurrent requests, but this is the general idea.
download all my books for free
- javascript handbook
- typescript handbook
- css handbook
- node.js handbook
- astro handbook
- html handbook
- next.js pages router handbook
- alpine.js handbook
- htmx handbook
- react handbook
- sql handbook
- git cheat sheet
- laravel handbook
- express handbook
- swift handbook
- go handbook
- php handbook
- python handbook
- cli handbook
- c handbook
subscribe to my newsletter to get them
Terms: by subscribing to the newsletter you agree the following terms and conditions and privacy policy. The aim of the newsletter is to keep you up to date about new tutorials, new book releases or courses organized by Flavio. If you wish to unsubscribe from the newsletter, you can click the unsubscribe link that's present at the bottom of each email, anytime. I will not communicate/spread/publish or otherwise give away your address. Your email address is the only personal information collected, and it's only collected for the primary purpose of keeping you informed through the newsletter. It's stored in a secure server based in the EU. You can contact Flavio by emailing flavio@flaviocopes.com. These terms and conditions are governed by the laws in force in Italy and you unconditionally submit to the jurisdiction of the courts of Italy.