← Back to Guide
Chapter 01
1. DNS Routing
The journey begins: How a domain name translates to an IP address.
DNS: The Phonebook of the Internet
When you type gpravin.com into your browser, a complex series of events kicks off before a single pixel is rendered. It all starts with the Domain Name System (DNS).
How It Works
- Browser Cache: First, your browser checks if it already knows the IP address for the domain.
- OS Cache: If not, it asks your Operating System.
- Resolver: The OS queries a Recursive Resolver (usually provided by your ISP).
- Root Server: The Resolver asks a Root Server where to find the Top-Level Domain (TLD) server (e.g., for
.com). - TLD Server: The TLD server points to the Authoritative Name Server for the specific domain.
- Authoritative Server: Finally, this server returns the actual IP address of the website.
High Availability in DNS
To ensure high availability at this layer, we use strategies like:
- Anycast Routing: Broadcasting the same IP from multiple locations, so users connect to the nearest one.
- Failover Records: Automatically switching to a backup IP if the primary one goes down.