Skip to content
    Science & Technology

    How does your browser find a website?

    You type a name. Somewhere, a machine has to find an address.

    3 lessons · about 5 minutes ·

    The short answer

    DNS finds where a site lives; it doesn't fetch or vouch for it. DNS works by referral: each server points to the one that knows. Cached answers save time but can stay stale until they expire.

    What you'll be able to do: Separate DNS lookup, connecting to a server and loading a page.

    Lesson 1

    A name is not a destination

    Imagine sending a parcel marked only ‘Maya’. The delivery service needs an address. A browser faces a similar problem: a domain name is convenient for a person, while a network connection needs an IP address.

    DNS supplies records that help resolve that name. It does not contain the website's photographs or decide whether its claims are true. Finding an address and fetching a page are separate jobs.

    Quick check

    DNS has returned an IP address. What has definitely happened?

    Pick an answer to see why.

    Next in this course

    1. Lesson 2

      A chain of directions

    2. Lesson 3

      Why the second visit can be different

    Keep going in the Inkly app

    The next lessons, their quick checks and a hands-on task are in the app. Free to download on iPhone.

    Continue in the app

    Try it yourself

    On a computer, open a terminal and type nslookup wikipedia.org. The numbers it prints are the address your browser really connects to; no page has been fetched yet.

    Sources

    All courses