The web DNS 2 min read

What is DNS?

You type shop.example. The browser has a name, but it needs a destination for the connection. Where does that address come from?

  1. Resolve the name

    The browser or operating system asks a DNS resolver for address records for the name. The resolver may already have a cached answer. Otherwise, it works with DNS servers that can lead it to the records for that name.

    Website name → DNS resolver → IP address Website nameDNS resolverIP address

    In short DNS resolves names into records a client can use.

  2. Use the answer to connect

    The resolver returns one or more addresses. The browser can use one to connect while still requesting the original website name. When connecting over HTTPS, it also checks that the server presents a valid certificate for that name.

    In short The address helps the browser connect. HTTPS checks the server’s identity.

Where this applies

A DNS answer alone says nothing about whether a website is trustworthy. The browser still needs to verify the HTTPS connection.

Keep this

DNS answers where to connect.

Keep the DNS lookup and the HTTPS identity check separate in your mental model.

Sources

Last reviewed 21 November 2026.

Next byte · The web What is in an HTTP request and response?