DEV Community

Cover image for Understanding DNS: The phonebook of Internet
Abhii
Abhii

Posted on

Understanding DNS: The phonebook of Internet

👋 Hey there!

Have you ever wondered how your computer finds a website on the internet? 🤔 That's where DNS comes in - it's like the phonebook of the internet!

DNS stands for Domain Name System, and it's a crucial component of the internet that allows your device to find and communicate with other devices on the internet. Here's how it works:

🌐 Websites and devices on the internet are each assigned a unique IP address, a string of numbers that identifies them on the network.
📚 But, IP addresses can be hard to remember, especially since they look something like this: 216.58.194.174.
🔍 That's where DNS comes in - it allows us to use human-friendly domain names, like www.google.com, instead of remembering a bunch of numbers.
🔗 When you type a domain name into your browser, your device sends a request to a DNS server to find the IP address associated with that domain name.
📶 The DNS server responds with the IP address, and your device can then connect to the website or device.

Working of DNS

So, in essence, DNS acts as a translator, converting human-friendly domain names into machine-friendly IP addresses.

But, how does your device know which DNS server to send the request to? 🤔 Well, your internet service provider (ISP) typically provides you with a default DNS server to use. However, you can also choose to use a different DNS server, such as Google's public DNS or Cloudflare's DNS.

DNS is a critical part of the internet infrastructure, and it's important to understand how it works. Without DNS, you'd have to remember the IP addresses of every website you visit, which would be a huge headache!

In conclusion, DNS is like the phonebook of the internet, translating human-friendly domain names into machine-friendly IP addresses. It's a crucial part of how the internet works, and understanding it can help you troubleshoot internet connection issues and make informed choices about your internet service. Thanks for reading, and happy surfing! 🌊🏄‍♀️🏄‍♂️

Latest comments (0)