What is DNS?

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.

You / Resolver
1. Root
2. TLD (.org)
3. Authoritative
The Resolver asks 1, 2, and 3 until it finds the IP.

The Chain of Command

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:

A Records, CNAMEs, and More

DNS doesn't just handle IPs. It uses different "record types" for different tasks:

A Record

Maps a domain directly to an IPv4 address.

AAAA Record

The IPv6 version of an A record.

CNAME

Points one domain to another (e.g., blog.viewip.org pointing to viewip.org).

MX Record

Tells the internet where to send Emails for that domain.

Caching: The Speed Secret

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."