IntermediateAbout 15 min

    DNS Resolution & Caching

    Read the full article on Substack

    6 min read.

    Visualize the hierarchical Domain Name System and how local caching speeds up internet browsing.

    Think of it this way: DNS is the phonebook of the internet. Caching is like saving a number in your contacts so you don't have to look it up in the phonebook every time.

    Your machine
    Browser cache
    on your machine
    OS cache
    on your machine
    Network
    Resolver
    your ISP or 8.8.8.8
    DNS hierarchy
    Root server (.)
    13 named clusters worldwide
    TLD server (.com)
    run by the registry
    Authoritative server
    example.com's nameserver

    Press Play to look up example.com.

    0/8

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Resolve a domain from scratch

    Sequence

    Order the lookups when nothing is cached yet.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    1. 1Drop a step here
    2. 2Drop a step here
    3. 3Drop a step here
    4. 4Drop a step here
    5. 5Drop a step here
    6. 6Drop a step here
    6 pieces left to place

    Quiz

    21 questions
    Question 1 of 21
    Score: 0

    If a DNS query is a "cache miss" at the OS level, where does the request typically go next?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going