The interview problem
Change a service's DNS records across authoritative servers and explain why a successful update does not immediately move every client.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume controlled authoritative zones and a known delegation. Validate zone syntax, record relationships and serial progression, then publish to primary and secondary servers using the provider's supported mechanism. Check authoritative answers directly before observing recursive resolvers. Cache TTLs apply to already-served records; lowering a TTL now does not retroactively shorten earlier cached answers. Preserve the old endpoint through the planned overlap.
2. Trace the design or derivation
Validate zone → publish serial → verify authorities → observe caches → retire old endpoint after overlap
Use an external health check for both old and new endpoints during transition. An authoritative record update can be correct while the new target is unreachable from users. Keep a change record with old values and observed propagation rather than interpreting one resolver's answer as global completion.
3. Calculate the example
A resolver cached an address with a one-hour TTL ten minutes before the change. It may retain that answer for roughly fifty more minutes even if the new zone advertises a sixty-second TTL. Planning only around the new TTL understates overlap.
4. Failure cases and trade-offs
An incorrect delegation or stale secondary can serve conflicting answers. DNS caching and application connection reuse are separate delays. Lower TTLs speed future changes but increase query load and dependence on authoritative availability. Rollback must also account for cached new answers.
5. Validation, follow-ups and self-review
Query each authoritative server and selected resolvers; test rollback while both addresses work. Follow-up: what changes for negative answers? Self-review: separate authoritative publication, cache expiry and client connection lifetime.
Sources and related practice
Technical reference: bind9.readthedocs.io — DNS zone and TTL configuration; cache-expiry example is illustrative.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Cache missing DNS names without prolonging an outage; Cut over an enterprise integration with a rollback window.
Continue your preparation
Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.