Any disadvantage to short DNS TTL?
-
DNS or IP TTL...? – Izzy Jan 24 '11 at 04:30
-
Shorter than what? – John Gardeniers Jan 24 '11 at 04:33
-
1Ok, the question has been changed to say "short", rather than "shorter", but that still begs the question of what is short? Is it 1 minute, 1 hour, 1 day, 1 century (which is VERY short compared to the age of the planet)? Without context the question is meaningless. – John Gardeniers Jan 24 '11 at 20:36
-
2A short TTL is shorter than a long TTL. I know the word short is relative, but I don't think it is a problem here. – webnat0 Jan 24 '11 at 23:16
-
2What is so difficult to understand? What is the advantage of setting TTL to 24 hours when you could set it to 5 minutes? Why not leave it at 5 minutes? – wobbily_col Jul 26 '16 at 09:40
2 Answers
Your DNS should not change very often in the first place. Many DNS server do not honor your TTL "request" and impose their own policy. If you're going to make a chage, set the TTL lower weeks before the change. Normally having a long TTL helps reduce load on your authoritative server(s) and adds a bit of time to clients accessing your site. I commonly use 3600, or even 36000 depending on the situation.

- 77,945
- 11
- 124
- 216
-
10+1 for `Many DNS server do not honor your TTL` - there are so many issues raised on this site when particular upstream DNS cache's ignore your TTL – Mark Henderson Jan 24 '11 at 03:49
-
2+1 for what Mark said but -1 for "Your DNS should not change very often in the first place". There are plenty of exceptions to make such a generalisation invalid. e.g. DNS to support the use of dynamic IPs, where a short TTL is almost essential. – John Gardeniers Jan 24 '11 at 04:37
-
+1 ... and I suspect one of the reasons extremely short TTL's aren't honored would be to discourage fast flux abuse: http://en.wikipedia.org/wiki/Fast_flux (i.e. there is a very good reason short TTL's are ignored) – danlefree Jan 24 '11 at 06:47
-
actually Chris, and you know I love you right :), we have VERY short TTLs on our entries simply to help with our DR policy. Now we have lots of our own DNS servers so can control this well and use Cisco GSS's to actually manage the DNS switchovers but we'd be in a hole without sub-minute TTLs. Still going to upvote you as you're right, just not for my own kinda-edge-case ;) – Chopper3 Jan 24 '11 at 12:23
-
@Chopper3, I probably should have added that there are crazy edge cases like yours where very low TTLs make sense. For most people DNS forms of HA don't make much sense and are a poorly thought through plan. But there are exceptions to every rule. – Chris S Jan 24 '11 at 13:38
-
@John, the DNS not changing often probably applies to most websites hosted with GoDaddy. I can't believe how popular this question got, I meant that as a suggestion to his question (relating specifically to the GoDaddy hosted website). In a more general sense you're absolutely correct that the TTL should be aligned with how your network operates. – Chris S Jan 24 '11 at 13:42
-
@Chris, I don't see where GoDaddy entered the question. In fact the question is so short of details I was tempted to vote for it to be closed as "not a real question". – John Gardeniers Jan 24 '11 at 20:33
-
@John, the question has gone through 4 different revisions.. I agree, I don't even recognize the question anymore. Previously he mentioned that his site is hosed by GoDaddy (and I assume he's moving hosting providers, though it's not clear). This whole Q/A has turned into a mess. – Chris S Jan 24 '11 at 20:42
-
1
-
definite +1 for "Many DNS server do not honor your TTL "request" " although I'd probably change it to "most major dns providers cache" and probably your local ISP's DNS server. Internally it really doesn't matter that much – Jim B Jan 26 '11 at 02:31
Higher TTLs mean fewer DNS lookups, which probably will translate in to lower "costs" for you and whoever's hitting your DNS. (less round trips)
That said, very low TTLs can be useful for infrastructure.
If you've got a 'floating' backend infrastructure DNS name (eg. puppet.sample.com) that you move from one box to another for High Availability and it's only your systems that need to honor that record, then low TTLs can be quite useful.

- 5,853
- 2
- 30
- 34