Week 5 - DNS: The Internet's Phonebook
In order to find a website, your PC needs to know its IP address. However, most people use a URL, like google.com, when searching the internet. Then how does your PC get the IP address when you give it a URL? That’s where the Domain Name System (DNS) comes in. Think of it as the internet’s phonebook. Instead of memorizing a bunch of IP addresses (like 142.250.190.14), DNS translates the URL, also known as a “hostname,” into computer-friendly IP addresses behind the scenes.
Here’s how it works: You type a URL, and your device checks its local DNS cache. Your PC stores these IP addresses locally for quick translation when attempting to reach a site you’ve visited before. If the IP doesn’t exist in the cache, it hits up a recursive DNS server, which does the legwork by contacting other DNS servers such as the root servers, TLD servers (like .com or .org), and the authoritative server for that domain. Once the IP is found, it is handed back to your device. Your browser of choice then connects to the web server hosting the website and loads it in the blink of an eye.
Without DNS, we’d be stuck memorizing IPs to order pizza or shop at Amazon. Fast, smart, and mostly invisible, DNS is doing its thing.
Comments
Post a Comment