In IP headers, TTL starts at 64 or 128 and each router decrements it by one. When it hits zero the packet is dropped — preventing infinite loops. (IPv6 calls the same field "Hop Limit.")
In DNS, TTL is the number of seconds a resolver should cache an answer. Lower TTLs make changes propagate faster but produce more upstream queries.
Try it on IPFerret
See also
