The migration that looked broken
Northstar Retail moves its website to a new hosting provider. The DNS team updates the authoritative A and AAAA records, tests the new endpoint, and confirms that the authoritative servers return the intended values. Yet one employee still reaches the old site.
The first assumption is that the update failed. The more useful question is: which DNS answer is that employee’s device using, and where was it cached? DNS answers can be cached by applications, operating systems, recursive resolvers, and other network components. Those caches do not all refresh at the same moment.
Northstar’s records may be correct at the source while an earlier answer remains valid in a cache. Understanding TTL and caching helps the team distinguish a normal transition from a real configuration error.
What a TTL actually means
Time to live (TTL) is a value associated with DNS data that tells caches how long an answer may be reused. If a resolver caches an answer with a remaining TTL, it can return that answer until the cached lifetime expires. Once expired, it normally needs to refresh the data before using it as a current answer.
A shorter TTL can allow caches to refresh sooner after a change, but it may increase query volume. A longer TTL can reduce repeated lookups, but a previously cached answer may remain in use longer after a change. The best setting depends on the service, expected change frequency, resolver behavior, and operational requirements.
Changing the TTL on the authoritative record does not reach back in time and rewrite already-cached entries. If an answer was cached under an older TTL, that earlier cache lifetime can still govern how long it remains usable.
Why people say DNS is propagating
“DNS propagation” is a convenient phrase for the period when different observers may receive different answers after a change. It is not usually a single update travelling from one central DNS server to every device. Rather, authoritative data changes, cached answers expire at different times, and resolvers refresh according to their own state and behavior.
One public resolver may already return the new answer, while a corporate resolver still has an unexpired cached value. A client may also cache information locally. Negative responses—such as an answer that a name does not exist—can be cached too, following the applicable negative-caching behavior.
For this reason, record the resolver and time used when comparing results. A single lookup cannot prove that every user sees the same answer. DNSSEC validation failures, delegation issues, typos, and incorrect authoritative data can also cause failures that waiting alone will not solve.
A step-by-step troubleshooting approach
- Confirm the intended change. Check the name, record type, value, zone, and approved change record.
- Query an authoritative source. Establish whether the authoritative servers publish the expected data.
- Compare recursive resolvers. Note the resolver queried and the timestamp; different results may reflect different cache states.
- Check the client path. Review local DNS configuration and cache behavior using approved operating-system tools.
- Check the delegation. If authoritative answers are inconsistent or unreachable, verify the nameserver delegation and zone configuration.
- Look beyond caching. Check DNSSEC validation, spelling, record conflicts, network access, TLS certificates, and application health where relevant.
Use only systems and domains you manage or are authorized to troubleshoot. Avoid repeatedly changing records at random; preserve the observed answers and make one controlled change at a time.
Plan a safer DNS migration
Before a planned migration, review the current records and dependencies. If reducing TTL is appropriate, do it sufficiently ahead of the cutover to allow caches holding the previous TTL to expire. Then validate the new hosting endpoint, certificates, health checks, and rollback plan before updating the live records.
After the change, check authoritative records and multiple relevant recursive resolvers, document when each observation was made, and keep the old service available for an appropriate transition period when feasible. Do not assume that an immediate local success means the whole audience has moved.
Once the new configuration is stable, restore a normal TTL suited to the service. The correct timing depends on the previous TTL, resolver behavior, the criticality of the service, and the organization's operations plan—not on a universal propagation timer.
Why defenders should care about stale DNS
Old records can create inventory gaps, route users to retired infrastructure, or leave a dependency that the organization no longer recognizes. But a stale-looking value is not automatically exploitable. A defender should verify ownership, provider configuration, current service status, and the impact of the record before classifying it as a risk.
Document the hostname, record type, observed value, TTL, resolver, and timestamp. Compare those details with approved inventories, contact the responsible team, and follow the organization's authorized remediation process. Never claim control of, probe, or attempt to take over third-party infrastructure simply because a DNS record looks old.
To learn the record types involved, read DNS Records Explained. For the resolver journey behind these results, see DNS Fundamentals and Name Resolution.
KNOWLEDGE CHECK / DNS
What does a DNS TTL tell a cache?
Consider the role of the record or component described in this guide, then reveal the explanation.
Show answer
TTL indicates how long cached DNS data may be reused. Changing the authoritative TTL does not instantly alter entries already cached under an earlier TTL.
CONTINUE LEARNING
Continue learning on CyberSurfaceMap
- Domains, Subdomains, DNS, and IP Addresses ExplainedStart with the core concepts and how these components fit together.
- DNS Fundamentals and Name ResolutionFollow a browser request through the DNS hierarchy and recursive resolution.
- DNS Records ExplainedLearn how address, alias, email, delegation, and policy records differ.
- DNS Caching, TTL, and PropagationUnderstand cached answers, record changes, and practical troubleshooting.
- What Is an External Attack Surface?Connect DNS findings to broader external asset inventory and risk assessment.
- External Attack Surface Assessment MethodologyUnderstand the platform's public DNS, passive subdomain, HTTP-header, and TLS checks and their limitations.
- Subdomain Enumeration for Defensive Asset DiscoveryFind and validate the subdomains associated with assets you own or are authorised to assess.
- SPF, DKIM, and DMARC ExplainedLearn how email authentication works and how to introduce policy safely.
Use DNS data only within an authorized scope. Names and records are clues to validate, not proof that a service is vulnerable.