ttl rewrites or clamps TTLs on response records. It supports fixing all TTLs to a single value or applying a min/max range.
- Fixed TTL:
ttl:60sets all record TTLs to 60. - Range:
ttl:30-300enforces min=30, max=300.
ttl(integer): fixed TTL. Overridesmin/maxwhen non-zero.min(integer): minimum TTL; raises TTLs below this value.max(integer): maximum TTL; lowers TTLs above this value.- If all three are omitted, defaults to a fixed TTL of 300.
- If
ttlis set (non-zero), all record TTLs are replaced with that value. - Otherwise
min/maxare applied to clamp existing TTLs.
- Enforce caching policies, limit DNS amplification, or normalize TTLs across upstream variability.
- Use to reduce load on upstream servers by increasing TTLs within acceptable bounds.