Journeys · Kubernetes · L1
A DNS lookup inside a Pod
You type one short word. Your Pod asks up to four questions, and a Service answers that is not a server.
✓ Validated on v1.37.2 · validation Run 1 · 2026-11-21Preview
The 30-second answer
The kubelet writes the Pod's /etc/resolv.conf: one nameserver, the kube-dns Service, and three search domains starting with the Pod's namespace. A name with fewer than 5 dots goes through the search list first. Each query goes to the Service IP, the kernel rewrites it to one CoreDNS Pod, and CoreDNS's kubernetes plugin answers anything under cluster.local itself. Names outside cluster.local are forwarded upstream, but only after the search list has failed.
Mental model
A campus help desk. The notice in your hostel room says: ask the help desk, and if you give a short name, they assume your own hostel first, then the campus, then the whole university. The switchboard puts your call through to whichever operator is free. The operators know every campus office by heart. For anything off campus, they phone the city directory.
Where the analogy breaks
A person would hear "example.com" and know it is off campus. The resolver does not think. It counts dots. Under 5, it tries every campus suffix first, and each wrong guess is a full question and answer.
🔒 Free account
Sign up free to play this journey
A free account unlocks every scenario, journey and exam, and saves your progress. No payment, ever.