A high-level overview of what DNS is and how it works
Normally, you usually don't try to use its IP address to access a website. youwere able, But very rare.
You usually usedomain name. Like google.com or flaviocopes.com.
This is very convenient because, for example, I can change the server and company used to host the 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 server network. Your provider will have its own DNS, and your router has been pre-configured to use it.
You can also choose to use Google's DNS server with an IP address
These DNS servers will receive requests from your computer, and then in turn will ask their own reference DNS servers.
The system is organized like a tree. There is a DNS server at the top, calledRoot DNS server.
For simplicity, it knows the IP address of the DNS server that manages each domain extension, for example
orgAnd so on, including country-specific domain name extensions and new extensions, such as
These DNS servers know the IP address mapping of all domains under their extension.
Of course, the system is set up to ensure caching, redundancy and the ability to withstand high concurrent requests, but this is the general idea.
More web tutorials:
- Introduction to WebSockets
- How HTTP requests work
- List of HTTP request headers
- List of HTTP response headers
- HTTP and HTTPS
- What is RFC?
- HTTP protocol
- HTTPS protocol
- The curl guide for HTTP requests
- HTTP cache
- List of HTTP status codes
- What is CDN?
- HTTP/2 protocol
- What is the port
- DNS, Domain Name System
- TCP protocol
- UDP protocol
- Introduction to REST API
- How to install a local SSL certificate in macOS
- How to generate a local SSL certificate
- How to configure Nginx for HTTPS
- A simple Nginx reverse proxy for serving multiple Node.js applications from subfolders
- What is a reverse proxy?