TTL Property of DNS


All DNS records have a TTL property, specifying the maximum amount of time other DNS servers and applications should cache the record.
Setting a DNS record's TTL value to zero, means that applications and DNS servers should not cache the record.

When a DNS record is stored in the cache of a DNS server, the record's TTL is continuously reduced as time go by, and when the TTL finally reaches zero the record is removed from the cache.

When a DNS server passes DNS records from the cache along to applications and other DNS servers, it supplies the current TTL value - not the original. This way the original TTL is guaranteed no matter how many DNS servers the record passes through.

When deciding on the TTL, you need to consider how often the record will be changed.
Because of caching, changes to a DNS record will not reach the entire network until the original TTL has expired - a good reason for setting a short TTL.
However caching helps reduce network traffic. The longer the TTL, the longer the record will live in other DNS server caches around the world, and so fewer requests to the original DNS server are needed - a good reason for setting a long TTL.

Generally, for a record pointing to a server/device with a static IP address and no need for quick updates, a TTL of one day is a good starting point.
However, if the record is for a host with a dynamic IP address or for server which is part of a failover set (see http://www.simplefailover.com), you should be using a TTL value of a few minutes or less.

Most DNS servers will not cache a DNS record for more than one week. This is also the default in Simple DNS Plus, but you can change this through the "Maximum cache time" option - see Options dialog / DNS / Caching section.

Use the Record Properties dialog to modify a record's TTL (select the record in the DNS Records window and click the "Properties" button).

Comments

  1. Time to Live (TTL)
    For most resource records, this field is optional. It indicates a length of time used by other DNS servers to determine how long to cache information for a record before expiring and discarding it. For example, most resource records created by the DNS Server service inherit the minimum (default) TTL of 1 hour from the start of authority (SOA) resource record which prevents overlong caching by other DNS servers. For an individual resource record, you can specify a record-specific TTL that overrides the minimum (default) TTL inherited from the SOA RR. TTL values of zero (0) can also be used for resource records that contain volatile data not to be cached for later use after the current DNS query in progress is completed.
    Note
    In the resource record examples below, the TTL field is omitted wherever it is optional. The TTL field is included in the syntax for each record to indicate where it may be added.

    ReplyDelete

Post a Comment

Popular posts from this blog

Boot configuration Data Store --BCDEdit /set

ADSI Edit

Userenv logging (User Environment logging)