DNS: turning names into addresses

What happens between typing a hostname and the first packet leaving your machine.

The lookup

Computers route on addresses, people remember names. DNS is the translation layer between the two.

The chain

  1. The browser checks its own cache
  2. Then the operating system cache
  3. Then the configured resolver, usually your router or a public one
  4. The resolver walks the hierarchy: root servers, then the top-level domain, then the authoritative server for the domain

Why TTL matters

Every record carries a time-to-live. A low TTL makes changes propagate quickly but increases lookup traffic. Lower it a day before you plan to move a service, not on the day.

Marked complete after 30 seconds at the end of this lesson.