DNS TTL
Learn what DNS TTL is, how it controls caching and propagation speed, recommended values for different use cases, how to manage TTL before changes, and common mistakes to avoid.
TL;DR
TTL (Time To Live) is a value (in seconds) that tells DNS resolvers how long to cache a record before checking for updates.
TTL is included in every DNS response from an authoritative server.
When a resolver (e.g., your ISP's DNS, Google 8.8.8.8) receives a record, it caches it for exactly that many seconds.
Caching flow:
example.com ANote: Negative caching—NXDOMAIN or NODATA responses, are also cached (using SOA MINIMUM or record TTL).
dig @8.8.8.8 example.com A or nslookup:dig example.com A