Interview Prep/Networking/DNS & Service Discovery

A deleted record is still being returned by some users hours later. Why?

IntermediateScenarioDNS & Service Discovery
Answer

Situation read → Caching at resolvers, and for deleted names negative caching also applies.

What I'd do →

  1. Check the record's TTL and the SOA minimum field, which defines negative caching TTL
  2. Query the authoritative server to confirm the new truth: dig @ns1.example.com name
  3. Query public resolvers and see their remaining TTL in the answer
  4. Flush a local resolver: resolvectl flush-caches
  5. Wait out the TTL or ask the resolver operator to purge (Google and Cloudflare have purge pages)

Why → Resolvers cache both positive and negative answers for as long as the zone says.

Interview tip → Say you lower TTL before changes, not after.

All Networking questions Roadmap: Networking for DevOps

More on DNS & Service Discovery