TTL (Time To Live) Print

  • 9

All DNS records have a TTL, specifying the number of seconds other DNS servers and applications are allowed to cache the record.

When a "foreign" DNS record is kept in a DNS server's cache, 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 "foreign" DNS records from the cache along to applications and other DNS servers it supplies the current TTL - not the original. This way the original TTL is guaranteed no matter how many DNS servers the record passes through.

Even when a DNS server reports that a certain record does not exist, this information is cached using the "minimum TTL" from a SOA-record supplied in the response.

Setting a record’s TTL to zero, means that applications and DNS servers are not allowed to cache the record.

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. But caching helps reduce network traffic. The longer the TTL, the longer the record will live in DNS servers’ caches around the world, and so fewer requests to the original DNS server are needed - a good reason for setting a long TTL. Generally a TTL of one day is a good starting point.

Most DNS servers will not cache a DNS record for more than one week. Keep in mind that your applications will run faster if the ISPs DNS servers do not have to keep coming back to look for a new record if the TTL clears to 0. If you do not require frequent changes to your zone file, we suggest using 43200 for 12 hours or 86400 for 24 hours for a TTL.

The following TTL values are allowed for the TTL value of a record:

TTL Description
0 Take the TTL from the SOA record
1 Dynamic (60 seconds)
60 60 seconds
300 5 minutes
600 10 minutes
900 15 minutes
1800 30 minutes
2700 45 minutes
3600 1 hour
7200 2 hours
14400 4 hours
28800 8 hours
43200 12 hours
64800 18 hours
86400 1 day
172800 2 days

Priority is used for MX and F (forwarding) records.

Priorities for MX Priorites for F
5 - higest 1 - Forward (302 redirect)
10 2 - Use Frames
20 3 - Use 301 redirect
90 - lowest

Var dette svaret til hjelp?