TTL (time-to-live) for DNS records:
TTLs also occur in the Domain Name System (DNS), where they are set by
an authoritative nameserver for a particular resource record. When a
caching (recursive) nameserver queries the authoritative nameserver
for a resource record, it will cache that record for the time (in
seconds) specified by the TTL. If a stub resolver queries the caching
nameserver for the same record before the TTL has expired, the caching
server will simply reply with the already cached resource record
rather than retrieve it from the authoritative nameserver again.
Nameservers may also have a TTL set for NXDOMAIN (acknowledgment that
a domain does not exist); but they are generally short in duration
(three hours at most).
Shorter TTLs can cause heavier loads on an
authoritative nameserver, but can be useful when changing the address
of critical services like Web servers or MX records, and therefore are
often lowered by the DNS administrator prior to a service being moved,
in order to minimize disruptions.
The units used are seconds. An older
common TTL value for DNS was 86400 seconds, which is 24 hours. A TTL
value of 86400 would mean that, if a DNS record was changed, DNS
servers around the world could still be showing the old value from
their cache for up to 24 hours after the change.
Newer DNS methods
that are part of a DR (Disaster Recovery) system may have some records
deliberately set extremely low on TTL. For example a 300 second TTL
would help key records expire in 5 minutes to help ensure these
records are flushed world wide quickly. This gives administrators the
ability to edit and update records in a timely manner. Remember, TTL
values are "per record" and setting this value on specific records is
normally honored automatically by all standard DNS systems world-wide.
Why that would be a problem:
DNS caching servers:
Recursive and caching name server In principle, authoritative name
servers are sufficient for the operation of the Internet. However,
with only authoritative name servers operating, every DNS query must
start with recursive queries at the root zone of the Domain Name
System and each user system must implement resolver software capable
of recursive operation.
To improve efficiency, reduce DNS traffic across the Internet, and
increase performance in end-user applications, the Domain Name System
supports DNS cache servers which store DNS query results for a
period of time determined in the configuration (time-to-live) of the
domain name record in question. Typically, such caching DNS servers,
also called DNS caches, also implement the recursive algorithm
necessary to resolve a given name starting with the DNS root through
to the authoritative name servers of the queried domain. With this
function implemented in the name server, user applications gain
efficiency in design and operation.
The combination of DNS caching and recursive functions in a name
server is not mandatory; the functions can be implemented
independently in servers for special purposes.
Internet service providers typically provide recursive and caching
name servers for their customers. In addition, many home networking
routers implement DNS caches and recursors to improve efficiency in
the local network.
In combination, this means that a domain name may take several TTL periods to propagate, and each TTL period used to commonly be 24-48 hours, meaning the overall time to propagate a domain name could easily take 24 hours. On the other hand, if there are fewer recursive steps and shorter TTL values on the caches, the period might be much faster - especially if the domain name is not requested for the first time until the original name server is configured.