What Is DNS? The Internet's Phone Book, Explained
DNS translates domain names into IP addresses. How DNS resolution works, the common record types, and why it underpins everything on the web.
DNS — the Domain Name System — is the protocol that translates a human-readable domain name like lycoristechnologies.com into the numerical IP address a computer actually uses to make a connection. Without DNS, every website visit would require you to memorise something like 104.21.48.1 instead of a friendly name. It is, as the old analogy goes, the phone book of the internet.
How DNS resolution works
When you type a URL into a browser, a surprisingly involved chain of lookups happens in milliseconds:
- Your device checks its local cache. If it recently resolved that hostname, it reuses the answer.
- Recursive resolver. If nothing is cached, your device asks a recursive resolver — usually one run by your ISP or a public service like
1.1.1.1(Cloudflare) or8.8.8.8(Google). This resolver does the heavy lifting on your behalf. - Root nameservers. The resolver asks one of the thirteen root nameserver clusters: “Where is
.com(or.org,.io, etc.)?” The root responds with the address of the relevant TLD nameserver. - TLD nameserver. The resolver asks the
.comTLD server: “Who handleslycoristechnologies.com?” It returns the domain’s authoritative nameservers. - Authoritative nameserver. Finally, the resolver asks the authoritative server — the one your domain registrar or DNS provider controls — for the actual record. It returns an IP address.
- The resolver hands that IP back to your device, which connects to the server.
The whole chain typically completes in under 100 ms the first time; subsequent requests are served from cache instantly.
Common DNS record types
| Record | Purpose |
|---|---|
| A | Maps a hostname to an IPv4 address |
| AAAA | Maps a hostname to an IPv6 address |
| CNAME | Alias — points one hostname to another hostname |
| MX | Specifies mail servers for a domain |
| TXT | Free-form text; used for SPF, DKIM, and domain verification |
| NS | Names the authoritative nameservers for the domain |
A minimal zone file for a small site might look like this:
lycoristechnologies.com. 300 IN A 104.21.48.1
www 300 IN CNAME lycoristechnologies.com.
mail 300 IN MX 10 mail.example.com.
Caching, TTL, and propagation
Every DNS record carries a TTL (Time To Live) value in seconds. Resolvers cache the record for that duration before fetching a fresh copy. A TTL of 300 means the answer is reused for up to five minutes.
This is why DNS changes don’t take effect instantly. When you update an A record, existing cached copies remain valid until their TTL expires. This is what people mean by “DNS propagation” — in reality, the new record is live immediately on the authoritative server, but resolvers worldwide must wait out their cached copies. Setting a low TTL (60–300 s) before a planned migration lets you cut over cleanly; a high TTL (86400 s) reduces resolver load day-to-day.
Why DNS underpins everything
DNS is involved in nearly every internet action: loading a webpage, sending email (MX records route the message), connecting to an API, verifying a TLS certificate, and even making a phone call over VoIP. It is foundational infrastructure, which is also why it is a high-value attack surface.
A few security layers have emerged to address this:
- DNSSEC — DNS Security Extensions — lets authoritative servers cryptographically sign their records so resolvers can verify they haven’t been tampered with in transit. It protects against cache poisoning attacks where a malicious resolver returns false IPs.
- DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt the DNS query itself, preventing your ISP or a network attacker from seeing which domains you’re looking up. Most modern browsers support DoH, and services like Cloudflare’s
1.1.1.1offer both protocols.
If you want to see DNS in action, try:
dig lycoristechnologies.com A +short
or, to query a specific resolver:
dig @1.1.1.1 lycoristechnologies.com A
Putting it together
DNS is the quiet infrastructure that makes the human-readable web possible. Every domain, every email, every API call relies on it. Understanding the resolution chain — recursive resolver to root to TLD to authoritative server — explains why a fresh DNS record isn’t instant, why TTL matters for migrations, and why encrypting DNS queries is worth doing. It is one of those foundational layers that, once understood, makes everything else on the web make more sense. For a deeper look at what happens after the IP address is resolved, see the guide to HTTPS and TLS, or read about how CDNs use DNS to route users to the closest edge server.
Tagged
Keep reading
Chisato · · 4 min read Anatomy of an Outage: The Day Facebook Vanished
On October 4, 2021, Facebook, Instagram, and WhatsApp vanished for six hours. How one network command and a DNS safety mechanism took it all down.
Chisato · · 4 min read What Is a NAT Gateway?
A NAT gateway lets private-subnet resources reach the internet outbound while staying unreachable from it, translating private IPs to a public one.
Chisato · · 4 min read What Is a VPC? Virtual Private Clouds Explained
A VPC is an isolated, software-defined network inside a public cloud. How subnets, routing, and security groups fit together to keep resources private.