Any disadvantage to short DNS TTL?
Solution 1
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.
Solution 2
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.
Related videos on Youtube
webnat0
Updated on September 17, 2022Comments
-
webnat0 over 1 year
Any disadvantage to short DNS TTL?
-
aeroshock over 13 yearsDNS or IP TTL...?
-
John Gardeniers over 13 yearsShorter than what?
-
John Gardeniers over 13 yearsOk, 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.
-
webnat0 over 13 yearsA 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.
-
wobbily_col almost 8 yearsWhat 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?
-
-
MrGigu over 13 years+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 -
John Gardeniers over 13 years+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.
-
danlefree over 13 years+1 ... and I suspect one of the reasons extremely short TTL's aren't honored would be to discourage fast flux abuse: en.wikipedia.org/wiki/Fast_flux (i.e. there is a very good reason short TTL's are ignored)
-
Chopper3 over 13 yearsactually 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 ;)
-
Philip over 13 years@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.
-
Philip over 13 years@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.
-
John Gardeniers over 13 years@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".
-
Philip over 13 years@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.
-
John Gardeniers over 13 years@Chris, then perhaps it should be closed.
-
raja over 13 yearsdefinite +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