News for hackers. Stuff that matters.
Re:Problems with low DNS TTLs by codyb on Monday March 29, 2021 @10:23AM (#26622066)
I always was under the impression people lowered the TTL when updating records... which doesn't even really make sense since the change won't propagate until the previous TTL is overrun anyways.

Then you were supposed to update it to a longer TTL when your change had propagated.

So, I guess, after understanding things better... there is no use case really since if it's a new record your change will always propagate, and if it's an old record, lowering the TTL on update doesn't really matter since the old TTL will still be in effect.

Re:Problems with low DNS TTLs by aequitas on Monday March 29, 2021 @10:32AM (#26622199)
It could help to lower your TTL way before you plan to update. If your current TTL was 24h, you just update it to 5m 24 hours before you plan the actual change of the record itself. The new record can them be set to 24h directly (unless you want a quick turnaround for rollback).

It's still no guarantee all changes will propagate within 5 minutes. But it gives some ease of mind to know the bulk of change won't take a day.

Also a lot of people forget the negative caching of NXDOMAIN records which is set by the TTL of the SOA record. Which means that it will take a while for your new record to be resolved if you started querying before you set the record.

Re:Problems with low DNS TTLs by EricE on Monday March 29, 2021 @01:44PM (#26625496)
Yes - it’s called planning. Lowering TTL well in advanced is not a new concept and works very well if you have enough advanced notice from the application owners ahead of time :p
Re:Problems with low DNS TTLs by toast0 on Monday March 29, 2021 @06:51PM (#26629310)
Unfortunately, data centers rarely give 24 hour notice about catastrophic fires or provide advance notice about utility outages when the automatic transfer switch is going to fail.
Re:Problems with low DNS TTLs by mschuster91 on Monday March 29, 2021 @10:33AM (#26622215)
> It's still no guarantee all changes will propagate within 5 minutes. But it gives some ease of mind to know the bulk of change won't take a day.

Especially it gives you peace of mind that should stuff go badly wrong you can easily revert the change.

Re:Problems with low DNS TTLs by ru552 on Monday March 29, 2021 @10:36AM (#26622278)
You got the use case right, but I think you're still thinking about it wrong. In-use public DNS changes aren't something that just crop up and need to be done immediately.

Eg. Five days from now, I'm going to make an infrastructure change that will affect public DNS. Today, I lower my TTL on affected records. Five days later I make the public changes, still using the lower TTL. Once I am satisfied my change will stay in production, I modify TTLs to be more sane.

Re:Problems with low DNS TTLs by elp on Monday March 29, 2021 @10:59AM (#26622707)
In practice though other things come up and the admin doesn't get round to increasing the TTL back to sanity later because nothing is broken if they don't.
Re:Problems with low DNS TTLs by gnu8 on Monday March 29, 2021 @02:02PM (#26625762)
Sure but in a department where people are sysadminning reactively, they’re going to have that problem crop up everywhere. This type of thing wouldn’t be neglected in a well thought-out change process.
Re:Problems with low DNS TTLs by codyb on Monday March 29, 2021 @10:38AM (#26622329)
That makes a lot of sense, I've updated a lot of DNS records, but not generally in a planned manner.
Re:Problems with low DNS TTLs by dawnerd on Monday March 29, 2021 @10:32AM (#26622200)
I lower the try a few days before I’m going to make a big change. This is also how we did it in the past at a large corp I worked at.

Does it actually make a difference? I dunno but it just feels right.

Re:Problems with low DNS TTLs by irishsultan on Monday March 29, 2021 @10:31AM (#26622172)
You could lower TTL if you know a change is coming.
Re:Problems with low DNS TTLs by ilikepi on Monday March 29, 2021 @10:35AM (#26622264)
Exactly. The TTL is lowered in advance of the maintenance window, sufficiently far out to allow any entries with the old TTL to expire from most resolvers. Once the maintenance has been completed and validated, and sufficient time has elapsed to decide there are no issues requiring roll back, the TTL is raised back up to its stable value.