Free domain registration and practical DNS learning resources for everyone.
TTL, Caching, and Propagation
DNS changes are not copied instantly to every device. Recursive resolvers cache answers for the record's TTL.
How Caching Works
If a resolver receives this record:
example.dpdns.org. 3600 IN A 192.0.2.10
it may reuse the answer for up to 3,600 seconds. Updating the authoritative record does not erase answers that were already cached.
Negative answers can also be cached. Creating a record immediately after someone queried a nonexistent name may still produce NXDOMAIN at some resolvers for a while.
Choose a TTL
| Situation | Example TTL | Trade-off |
|---|---|---|
| Stable production record | 3600 to 86400 | Fewer queries, slower emergency changes |
| Planned migration | 300 to 600 | Faster transition, more DNS queries |
| Temporary test | 60 to 300 | Quick iteration, higher query volume |
These are operational examples, not universal requirements. A DNS service may enforce its own minimum or automatic TTL.
Plan a DNS Migration
- At least one old TTL period before the change, lower the TTL on records that will move.
- Confirm the lower TTL is visible from the authoritative nameservers.
- Make the address or target change.
- Keep the old service available during the overlap.
- Verify the new answer from authoritative and recursive resolvers.
- Raise the TTL again after the migration is stable.
Lowering the TTL immediately before the main change does not affect copies already cached with the old, longer TTL.
Separate Authoritative State from Cached State
Ask an authoritative server directly:
dig @ns1.dns-service.example A example.dpdns.org
Ask the resolver configured on your machine:
dig A example.dpdns.org
If the authoritative answer is new but the recursive answer is old, the zone is correct and a cache is still valid. Waiting is safer than repeatedly editing the record.
Inspect TTL Values
dig A example.dpdns.org +noall +answer
The number before IN is the remaining TTL in seconds. It often decreases between queries when the answer is cached.
Browser and Operating System Caches
Even after a resolver updates, an application or operating system may retain connection or DNS state. Test with command-line DNS tools first. Restarting a browser does not fix an incorrect authoritative record.
Next Step
Continue to DNS Troubleshooting.