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 →
- Check the record's TTL and the SOA minimum field, which defines negative caching TTL
- Query the authoritative server to confirm the new truth:
dig @ns1.example.com name - Query public resolvers and see their remaining TTL in the answer
- Flush a local resolver:
resolvectl flush-caches - 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.
More on DNS & Service Discovery
A customer types www.example.com in a browser. Walk through how DNS resolves it.BeginnerWhat is the difference between an A record and a CNAME, and when do you use each?BeginnerWhy can't you put a CNAME at the zone apex, and what do you use instead?BeginnerYou are moving a site to a new server. What do you do with DNS to make the cutover smooth?BeginnerHow do you find which nameservers are authoritative for a domain and query them directly?BeginnerWhat DNS records do you set up for company email?Beginner