Introduction
Imagine trying to send a letter but not knowing the exact address of the person. Computers face a similar problem when they want to talk to each other on the internet. They need a way to find each other easily and correctly.
Think of sending a letter to a friend. The IP address is like the exact street address where your friend lives. The domain name is like your friend's name saved in your phone. When you want to send a letter, you look up their name in your phone to find their address.
┌───────────────┐ ┌───────────────┐ ┌───────────────┐ │ User types │ → │ DNS translates│ → │ Computer uses │ │ domain name │ │ domain to IP │ │ IP address to │ │ example.com │ │ address │ │ connect │ └───────────────┘ └───────────────┘ └───────────────┘