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.
A familiar example
Visiting a new shop
- The browser asks DNS where the shop's domain lives.
- DNS returns an address for its hosting or delivery service.
- The browser connects there and includes the domain so the correct site responds.
What to remember
- 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.