Assign TTLs by record purpose rather than by habit.
A sensible investor does not put all their money in one asset. In the same way, a sensible zone does not use one TTL for everything. This table is the draft of your Module 5 deliverable. The classification matters more than the exact numbers, which you should tune to how often your own records change.
|
Record class |
Example |
Suggested TTL |
Reasoning |
|
Steering-critical |
Apex A/AAAA under active traffic management |
30–120 s |
Bounds how fast steering can react; keep it only as short as the steering interval needs |
|
Application endpoints |
api., app., checkout. |
5–60 min |
Changes are planned, not sudden. Lower briefly before a planned change, then restore |
|
Static assets and hosts |
images., static., long-lived hosts |
4–24 hrs |
These rarely change; every short TTL here is pure avoidable delay and load |
|
Infrastructure |
NS, MX and the SOA |
12–48 hrs |
Changes are rare and heavily planned; long TTLs greatly improve outage resilience |
|
Negative caching |
The SOA minimum field |
5–15 min |
Long enough to absorb random-subdomain floods, short enough that new names appear promptly |
|
Pre-change window |
Any record about to be migrated |
60 s, for 48 hrs before |
Buy agility deliberately and temporarily, then put it back |
Two rows deserve extra attention. Negative caching is the least-known control in DNS, and it works in both directions. Too short, and every random-subdomain query reaches your servers, turning an attack into a load bill you pay. Too long, and a hostname you have just created stays invisible to part of the internet for the duration. Minutes, rather than seconds or hours, is usually right.
The pre-change row encodes the habit that prevents the whole problem Slide 36 opened with. Lowering a TTL before a migration is excellent engineering. The failure is purely organisational: nobody owns putting it back. Infrastructure records reward the longest TTLs, and that is an availability argument as much as a speed one, since long-cached name server records keep resolution working when your own servers cannot be reached (Moura et al., 2018).
KEY TAKEAWAYÂ Â The last row is the discipline. Lowering TTLs before a planned change is correct practice. Raising them again afterwards is the step that never happens, and it is how every uniform-300-second zone was created. Put the restore in the change ticket as a required task, with the target value stated, and not as a follow-up.
