What is DNS and why it's important ?

What is DNS and why it's important ?

What is DNS

Have you ever wondered how you can easily type www.kads.in into your browser and land on the Google search page? It's not magic, but it's pretty close! The secret sauce behind this seamless experience is called DNS, short for Domain Name System.

Think of DNS as the internet's version of a phonebook. Just like a phonebook helps you find someone's phone number based on their name, DNS translates human-readable domain names like www.kads.in into machine-readable IP addresses (like 172.217.160.142).


Why does DNS matter ?

Imagine a world without DNS. You'd have to remember every website's IP address, which are long strings of numbers that are nearly impossible to memorize. Not only is this inconvenient, but it also makes the internet less user-friendly and more vulnerable to errors.

Here's a simple analogy:

Let's say you have a contact list on your phone. Instead of remembering everyone's phone number, you just need to remember their name. When you want to call someone, you simply look up their name in your contact list, and your phone dials the number for you. DNS works in a similar way, translating domain names into IP addresses so your computer can connect to the right website.


How Does DNS Work ?

  1. You type a domain name into your browser. For example, you type "www.kads.in".

  2. Your computer sends a DNS query to your local DNS server. This is usually your internet service provider's (ISP) DNS server.

  3. The local DNS server checks its cache for the IP address. If it finds the IP address, it sends it back to your computer.

  4. If the local DNS server doesn't have the IP address, it sends a query to a root DNS server.

  5. The root DNS server directs the query to a top-level domain (TLD) server. For example, if you're looking for "www.kads.in", the query is sent to the ".in" TLD server.

  6. The TLD server directs the query to the authoritative DNS server for that domain. This is the server that knows the actual IP address for "www.kads.in".

  7. The authoritative DNS server sends the IP address back to your computer.

  8. Your computer can now connect to the website using the IP address.


A visual representation of the DNS process:

Conclusion

In conclusion, DNS is a critical component of the internet that makes it easy for us to use. By translating domain names into IP addresses, DNS allows us to connect to websites without having to remember complex numbers.

I hope this blog post has helped you understand the importance of DNS. If you have any questions, please feel free to leave a comment below.