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 MP4CaptionsListen without the video
Download audioChapters 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.
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
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.
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.
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.
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.
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.
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?
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
- Place a 3,600-second cached answer at 10:00.
- Lower the authoritative TTL at 10:10.
- 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.
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.
Engineering model and trade-offs
Distinguish recursive resolvers from authoritative name servers. A/AAAA map names to IPv4/IPv6 addresses; CNAME aliases a name with DNS constraints; TXT stores verification or other text. An HTTP redirect is an application response after a connection is made.
TTL controls how long compliant caches can retain a record. Lowering TTL at change time does not erase copies cached under the previous higher TTL. Plan ahead and keep the old endpoint safe during migration.
Protect DNS access, validate delegation and keep rollback records. DNS health routing depends on detection and caching, so it is not instantaneous failover. Verify resolution from relevant resolvers and actual HTTP/TLS behavior.
Work through an example
A record was cached at 10:00 with a 3,600 second TTL. You lower TTL at 10:10.
Reason with the numbers
That existing cache may retain the old answer until about 11:00. The new shorter TTL affects later fetched answers, not already cached copies.
Make a decision
Reduce TTL in advance when appropriate, prepare both endpoints and monitor the transition. Keep domain ownership, DNS and hosting configuration separate in your explanation.
Implementation sketch
dig example.com A
dig example.com AAAA
dig example.com NS
dig example.com TXT
# Read-only examples; replace with a domain you manage.These commands inspect records where dig is installed. They do not edit DNS, prove application health or configure a Vercel/Spaceship account.
Where this is used
- Domain verification and hostname routing.
- Planned endpoint migrations and controlled DNS failover.
Common mistakes
- Calling a CNAME an HTTP 301 redirect.
- Expecting TTL changes to clear every resolver immediately.
- Forgetting certificates, host routing and the old endpoint.
Practise a reasoned answer
Answer aloud or write notes before opening the reference. These prompts teach reasoning and trade-offs; they are not claimed questions from a particular company.
What happens when you type a hostname?
Choose a practice depth
- Foundation
- Explain authoritative and recursive resolution.
- Practical
- Discuss A/AAAA/CNAME/TXT, delegation and TTL planning.
- Advanced
- Defend migration overlap, rollback, resolver differences and actual TLS/HTTP checks.
Self-check rubric
- State the required user outcome and the relevant invariant.
- Explain the normal path and one failure path.
- Name a cost or consistency/latency trade-off.
- Say what you would measure or test before trusting it.
For deeper practice, connect this topic to the previous lesson and identify a shared bottleneck. A longer answer is not automatically a better answer.
Try it before viewing the solution
Why do two users reach different servers after a DNS update?
Check one key idea
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.