DNS (Domain Name System) is a name resolution service that translates domain names into IP addresses and IP addresses into domain names. It enables users and applications to access network resources using easy-to-remember domain names instead of numerical IP addresses, facilitating communication and resource discovery across networks.
When you want to call your friend Rahul, you don't memorize Rahul's phone number. You search for "Rahul" in your contacts, and your phone finds the number for you.
DNS works exactly the same way:
What You Know What Computers Need
www.microsoft.com 13.107.xxx.xxx (IP Address)
www.google.com 142.250.xxx.xxx (IP Address)
You type www.microsoft.com in your browser.
Your computer asks a DNS server: "What's the IP address for Microsoft?"
DNS replies with the IP address.
Your browser connects to the Microsoft server using that IP.
The website opens.
Website Name = Person's Name
IP Address = Phone Number
DNS = Contact List / Phonebook