AlgoViz

How DNS works

medium 25 min

Resolution turns a name into an address by checking caches first and then following referrals from the root to the owner's servers.

Where it shows up

The same pattern appears across everyday software.

  • Internet providers

    They run resolvers close to their customers, so most names are answered from a shared cache.

  • Public resolvers

    Cloudflare (1.1.1.1), Google (8.8.8.8) and Quad9 (9.9.9.9) answer recursive questions for anyone.

  • Browsers

    A page can hint with rel=dns-prefetch that a name will be needed soon, so that its lookup is done early.

  • Kubernetes pods

    A search list turns a short name into several candidates, so one call to an outside name can cause several questions.

  • The signed root

    The root zone has been signed since 2010. It anchors every DNSSEC chain.

  • Company networks

    Split DNS gives internal users another answer for the same name, which is a common reason why it works at the office only.