Skip to content
Commitwise
Menu

TTL (time to live)

How long a cached copy may be used, for example how many seconds a DNS answer may be cached.

Definition

In DNS, every record has a TTL in seconds; resolvers and devices reuse the answer until it runs out, so a change takes up to the old TTL to reach everyone. In IP packets, TTL is instead a hop counter that routers decrease, which stops packets from looping forever.

In practice

Lower a record's TTL from 86,400 to 300 a day before moving the server, so the switch spreads within minutes.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.