📖 L3 of 6 · M1⏱ 5 min▣ Core lesson

DNS in 60 seconds

Names are easier to remember than numbers. DNS is the system that translates one to the other — and Tailscale has its own, called MagicDNS.

1The problem DNS solves

Computers route packets by IP address. Humans type google.com. Something has to translate.

That something is DNSDNS (Domain Name System) — the global directory that turns names like google.com into IP addresses like 142.250.190.46. Every name lookup happens dozens of times a day, transparently. — the Domain Name System. When you type google.com, your laptop:

  1. Asks a DNS resolver: "what's the IP for google.com?"
  2. The resolver replies: "142.250.190.46"
  3. Your laptop opens a connection to that IP.

This happens in milliseconds, every time you click a link. It is, frankly, the unsung hero of the internet.

2Who is the resolver?

By default, your ISP's DNS server. You never picked it; it came with your internet. A few popular alternatives:

  • 8.8.8.8 and 8.8.4.4 — Google's public DNS
  • 1.1.1.1 and 1.0.0.1 — Cloudflare's public DNS, fast and privacy-respecting
  • 9.9.9.9 — Quad9, blocks known malicious domains

You can change which one your devices use in your router or OS settings. This becomes relevant in the Pi-hole project (Module 2 + 4 prereqs), where you run your own resolver to block ads.

Deep-path detail: DNS is hierarchical. There are 13 root servers; they delegate to TLD servers (.com, .org); those delegate to authoritative servers for each domain. When your resolver doesn't know an answer, it walks this chain. Caching at every layer keeps it fast — your resolver remembers Google's IP for hours.

3MagicDNS — Tailscale's version

Once your devices are on a tailnet, you don't want to remember 100.94.32.18 any more than you want to remember 142.250.190.46. Tailscale's MagicDNSMagicDNS — Tailscale's built-in DNS that resolves your device names (e.g. laptop, home-server) to their tailnet IPs automatically. No config — just enable it once in your tailnet settings. feature gives every device a name and resolves them automatically. So ssh laptop works from your phone. http://home-server works from your iPad. No DNS config, no IP memorization.

The full name is laptop.your-tailnet.ts.net, but the short form (laptop) usually just works.

The aha: MagicDNS is what makes a tailnet feel like one cohesive network. You stop thinking in IPs entirely. Devices have names; names work everywhere.

4Try it

Without Tailscale, you can already see DNS in action:

nslookup google.com    # or `dig google.com` if you have it

You'll see one or more IPs. Try a couple of other names — github.com, your-bank.com, tailscale.com. Each gets resolved to a real address.

nslookup tailscale.com

Once we have a tailnet (M3), you'll be able to do nslookup laptop and watch MagicDNS hand back your tailnet IP. Same protocol, private namespace.

🧠Knowledge check

Three quick questions

Pick an answer to see why.

Q1.What does DNS do?
Q2.What does Tailscale's MagicDNS do?
Q3.You typed nslookup google.com and got back an IP. What just happened?
3 / 3
The big one is next: NAT.