← 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).

DNS Routing Diagram

How It Works

  1. Browser Cache: First, your browser checks if it already knows the IP address for the domain.
  2. OS Cache: If not, it asks your Operating System.
  3. Resolver: The OS queries a Recursive Resolver (usually provided by your ISP).
  4. Root Server: The Resolver asks a Root Server where to find the Top-Level Domain (TLD) server (e.g., for .com).
  5. TLD Server: The TLD server points to the Authoritative Name Server for the specific domain.
  6. 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.