20 / 25 · Operations and recovery

DNS management

DNS translates names into records such as addresses. Managing DNS includes authoritative records, TTL, delegation and safe changes. It is not an HTTP redirect and does not instantly move every existing connection.

What you will practise

  • Separate DNS and redirects
  • reason about old TTLs
  • validate changes

Before you start: Domain name, resolver and cached record.

About 4 minutes · offline-generated English female narration · captions included. Diagrams are conceptual; timings are illustrative.

Download MP4Captions

Listen without the videoDownload audio

The same pre-recorded voice as the video. Starting audio pauses the video, and starting the video pauses audio.

Chapters and full transcript

Let us understand dns management. A phone book maps a name to a number. People who wrote down yesterday number may keep using it until they check again. Changing the book cannot hang up every current call. DNS caches and existing network connections behave similarly. DNS translates names into records such as addresses. Managing DNS includes authoritative records, TTL, delegation and safe changes. It is not an HTTP redirect and does not instantly move every existing connection.

Follow the normal path. The browser or operating system asks a resolver for the hostname. Existing local or resolver caches may already contain an answer. A resolver without a usable cached answer follows DNS resolution to the authoritative records. Record type and delegation must be configured correctly. SeatSpot changes an application endpoint or validates a domain. A safe release must account for record type, current TTL, certificate/host configuration and rollback rather than assuming Save means every user changed immediately.

Now change one condition. A client may connect to the old endpoint while its answer is still valid. Changing the authoritative record does not instantly erase that cached answer. A common misunderstanding is this: DNS is an HTTP redirect. DNS provides records before the HTTP connection; a redirect is a later HTTP response. Think about this. A resolver cached a one-hour answer ten minutes ago. Does lowering TTL now erase its cache? Pause the video and make your prediction. No. That cached answer can remain until its old expiry. The shorter TTL applies to answers fetched later.

Let us reason with a concrete example. A record was cached at 10:00 with a 3,600 second TTL. You lower TTL at 10:10. That existing cache may retain the old answer until about 11:00. The new shorter TTL affects later fetched answers, not already cached copies. Reduce TTL in advance when appropriate, prepare both endpoints and monitor the transition. Keep domain ownership, DNS and hosting configuration separate in your explanation. These figures are teaching examples, not production guarantees.

Turn the idea into a design decision. Later lookups can obtain the new destination. Clients and resolvers change at different times, so old and new endpoints may both receive traffic. The new address also needs the correct certificate, host routing and healthy application. Successful resolution alone does not prove the website works. When you try the practice task, look for this result. The old cached answer can remain until about 11:00; existing connections are a separate issue.

Check your understanding. Keep a rollback path and an appropriate overlap interval. Lower TTL in advance when useful; do not expect a last-second TTL edit to end existing connections. Here is a challenge. Why do two users reach different servers after a DNS update? Pause before the answer. Resolvers fetched answers at different times and may retain previous TTLs. Clients may also reuse existing connections. Inspect records and actual request routing before concluding the update failed. For an interview, discuss A/AAAA/CNAME/TXT, delegation and TTL planning. Say what you would measure, not only which tool you would buy.

Start with an everyday picture

A phone book maps a name to a number. People who wrote down yesterday number may keep using it until they check again. Changing the book cannot hang up every current call. DNS caches and existing network connections behave similarly.

Why SeatSpot needs this

SeatSpot changes an application endpoint or validates a domain. A safe release must account for record type, current TTL, certificate/host configuration and rollback rather than assuming Save means every user changed immediately.

Trace one step at a time

Move through the diagram at your pace. Teal paths are active; unavailable components are labelled.

BrowserRecursiveresolverAuthoritative DNSOld endpointNew endpoint

Step 1 of 6 · DNS before connection

Look up the name

The browser or operating system asks a resolver for the hostname. Existing local or resolver caches may already contain an answer.

Read all six mechanism steps
  1. Look up the name

    The browser or operating system asks a resolver for the hostname. Existing local or resolver caches may already contain an answer.

  2. Query authority if needed

    A resolver without a usable cached answer follows DNS resolution to the authoritative records. Record type and delegation must be configured correctly.

  3. Use a cached answer

    A client may connect to the old endpoint while its answer is still valid. Changing the authoritative record does not instantly erase that cached answer.

  4. Fetch the new answer

    Later lookups can obtain the new destination. Clients and resolvers change at different times, so old and new endpoints may both receive traffic.

  5. Verify beyond DNS

    The new address also needs the correct certificate, host routing and healthy application. Successful resolution alone does not prove the website works.

  6. Plan safe overlap

    Keep a rollback path and an appropriate overlap interval. Lower TTL in advance when useful; do not expect a last-second TTL edit to end existing connections.

Pause and make a prediction

A resolver cached a one-hour answer ten minutes ago. Does lowering TTL now erase its cache?

Answer aloud or write your reasoning in the lesson notes before revealing the explanation.

Correct a common misunderstanding

Claim to question: DNS is an HTTP redirect.

Better explanation: DNS provides records before the HTTP connection; a redirect is a later HTTP response.

Build a DNS migration timeline

A paper or whiteboard task. No cloud account or paid infrastructure is required.

  1. Place a 3,600-second cached answer at 10:00.
  2. Lower the authoritative TTL at 10:10.
  3. Mark the old answer’s possible expiry and keep both endpoints safe.

Check what you can explain

This is your self-check, not an automated grade. Try again without the diagram tomorrow.

0 of 3 goals checked. Choose one remaining idea to practise next.

These checkboxes reset when you leave. Use your saved lesson notes and completion marker to record lasting progress.

Teach it back

Without looking, explain what this component changes, what it does not solve and what happens if it fails. Use the animation to check your explanation, then switch to Engineering.

Try it before viewing the solution

Why do two users reach different servers after a DNS update?

Check one key idea

Lowering TTL right now:

Your explanation and interview notes

Saved only in this browser when storage is available. Export a backup from the course page before clearing browser data or moving devices.

Loading your local notes…

Official references and next reading

The explanation, fictional examples and animations are original teaching material. Vendor behavior depends on the specific product/version; use its documentation before deploying.