Solice UI
Back to the curriculum

Chapter 1 · How the Web Works

DNS, domains, and servers

People remember names such as example.com more easily than network addresses. DNS connects those readable names to the servers that can answer a browser's request.

Beginner · Lesson 3 of 6 in this chapter

DNS works like a directory

Before connecting, the browser needs an address for the domain. It asks a DNS resolver, which may already know the answer or may follow the domain's records until it finds the server or delivery network responsible.

The server chooses the response

A single server can host many sites. The domain in the request helps it select the correct application and content. Large sites often place a content delivery network in front so common files travel from a nearby location.

Visiting a new shop

  1. The browser asks DNS where the shop's domain lives.
  2. DNS returns an address for its hosting or delivery service.
  3. The browser connects there and includes the domain so the correct site responds.
  • DNS maps readable names to network destinations.
  • A domain and a server are related but not the same thing.
  • Hosting and delivery services can share the work of serving a site.