The Domain Name System (DNS) is the internet's translator. It turns human-friendly names like viewip.org into the machine-readable IP addresses (like 104.21.23.210) needed to route data.
When you request a site, your computer doesn't just "know" where it is. It asks a Recursive Resolver (like Cloudflare's 1.1.1.1) to find it. The resolver then goes on a hunt:
DNS doesn't just handle IPs. It uses different "record types" for different tasks:
Maps a domain directly to an IPv4 address.
The IPv6 version of an A record.
Points one domain to another (e.g., blog.viewip.org pointing to viewip.org).
Tells the internet where to send Emails for that domain.
To keep the internet from breaking under the weight of billions of requests, DNS results are saved in a Cache. Your computer, your router, and your ISP all keep a temporary copy of the IP address for a certain amount of time. This time is known as the TTL (Time to Live).
Behind the Scenes: When you change your website's IP, it doesn't update instantly for everyone. You have to wait for the old TTL to expire across the globe, a process often called "Propagation."