← All notes
Holly Field Notes

What happens when you type a domain?

A domain is a memorable name. DNS is the directory that helps your device find the server behind it.

The short route

When you enter a name, your browser asks a DNS resolver for its address. The resolver may already have an answer cached. Otherwise, it follows the DNS hierarchy until it finds the records managed for that domain. Your browser then connects to the returned address and requests the page.

Records have different jobs

Why changes take time

DNS answers are cached for a period set by their time to live, or TTL. After a record changes, some resolvers may keep the old answer until that period ends. Checking the authoritative answer and a few public resolvers helps distinguish a propagation delay from a wrong record.

A DNS record decides where a connection goes. The server at that address still has to listen on the right port and serve the requested name.