HTTP & Networking

What is DNS?

The Domain Name System, the distributed database that translates human-readable domain names into the IP addresses computers actually route to.

When you type example.com into a browser, your machine asks a DNS resolver for the IP that name points to. The resolver walks the hierarchy, root servers, then .com servers, then example.com's authoritative servers, and returns an A record (IPv4) or AAAA record (IPv6). Your browser then opens a TCP connection to that IP.

DNS records come in many types. A and AAAA map names to IPs; CNAME aliases one name to another; MX points mail to mail servers; TXT carries arbitrary text (used by SPF, DKIM, domain verification); NS delegates a subdomain to a different set of authoritative servers.

DNS is famously cached at every layer: the OS, the resolver, intermediate caches, sometimes the application. That caching is why DNS changes "take 24 hours to propagate", the change happens instantly at the authoritative server, but every cache between you and it has to expire its old answer.

In the wild

  • An A record pointing example.com to 93.184.216.34
  • A CNAME aliasing www.example.com to example.com
  • An MX record routing @example.com mail through Google Workspace

FAQ

What's a DNS resolver?

A server (often run by your ISP, or a public one like 1.1.1.1 or 8.8.8.8) that takes a domain name from your client and returns an IP after walking the DNS hierarchy on your behalf.

How long does DNS propagation take?

It's not propagation, it's cache expiration. Records expire based on their TTL, typically 300s to 24h. A record with a 5-minute TTL effectively "propagates" in 5 minutes; a record with 86400s TTL takes a full day.

What is DNS over HTTPS (DoH)?

DNS lookups encrypted inside HTTPS so your network provider can't see what hostnames you're resolving. Cloudflare 1.1.1.1 and Google 8.8.8.8 both support it.

Related terms

Ship an agent that actually knows things.

Free tier, 10-minute integration, and the same API powering agents at Mintlify, daily.dev, and Propane. No credit card to start.