How DNS works
DNS looks simple. Type a name, get an IP. But under the hood, it’s a distributed lookup system
No single server knows everything—domains are owned by different organizations, so your query is guided across multiple name servers until the right owner responds 😎👆
Find high-res pdf books with all my networking related infographics from https://study-notes.org
I used to find DNS a bit abstract, just another piece of tech jargon. But once I understood it as a *distributed system*, everything clicked! It’s not just one giant database sitting somewhere; it’s a brilliant network of servers working together, ensuring websites load quickly and reliably. So, what exactly makes DNS 'distributed'? Imagine trying to keep a single, massive phone book for every person on Earth, updated in real-time, and accessible to everyone instantly. Impossible, right? That's why DNS is distributed. It's designed for scalability, resilience, and efficient management. No single server or organization has to manage all the domain name information for the entire internet. Instead, the responsibility is delegated. Think of your journey to a website like finding a specific book in a massive library system. When you type www.google.com, your Local DNS Resolver (often your router or your ISP's server) is your first stop. It first checks if it has the address cached locally. If it does, great! Instant access. This is why websites you visit often load faster. But what if there's a cache miss? That's when the distributed magic truly begins. Your local resolver then asks a Root Name Server. These are the top-level directories of the internet. They don't know www.google.com's IP directly, but they know where to find the servers responsible for .com domains. So, the root server points your resolver to a TLD (Top-Level Domain) Name Server for .com. Next, your resolver contacts the .com TLD server. This server, again, doesn't know the exact IP for www.google.com, but it knows which Authoritative Name Server is responsible for google.com. This is the server that truly 'owns' the google.com domain and has its records. Finally, your resolver queries the authoritative name server, which provides the actual IP address for www.google.com. Once your local resolver gets that IP address, it sends it back to your browser, and *voila*! You're connected. The resolver also caches this information locally for future requests, speeding things up next time. This entire process, often involving several different name servers across the globe, happens in milliseconds, usually without you even noticing. This hierarchical and distributed design is incredibly robust. If one server goes down, others can pick up the slack. It also allows different organizations (like Google for google.com) to manage their own domain records without needing a central authority to approve every change. It’s a testament to good network engineering, making the internet the reliable resource we depend on daily. Understanding this behind-the-scenes distributed dance truly makes you appreciate the complexity and elegance of how the internet works!












































































