TTL (Time To Live) tells how many seconds a DNS record may stay in a cache before it has to be looked up again. A TTL is set for each record in the zone.
When a resolver receives an answer from a DNS server, it caches the record for a time equal to its TTL (for example 3600 seconds — one hour). Until the TTL expires, repeat lookups are served from the cache without contacting the authoritative server. This speeds up name resolution and reduces load on the infrastructure.
A TTL value is a trade-off between how fast changes spread and how much load you generate:
A well-chosen TTL balances data freshness against caching efficiency.