Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Tenant DNS Change Evidence — Scheduled TTL Lowering and Exact Restore

A developer-tools platform that gives every tenant a subdomain pays for DNS changes in updates, verification work, and retained evidence. The dominant term to quantify first is the old answer's cache lifetime: an illustrative 86,400-second TTL represents 24 hours. Lowering that TTL at cutover leaves already cached answers on their original clock. This is a time budget, not a measured provider…

Tenants on a developer-tools platform receive subdomain DNS updates, with DNS changes being a key factor. The original TTL, or time to live, of 86,400 seconds (24 hours) represents the cache lifetime for old answers. Lowering the TTL prior to the DNS cutover allows cached answers to expire at their original rate. For a successful cutover, save the original TTL and content, lower the TTL a day before the planned switch, make the target change, and then restore the saved TTL.

All steps should be scheduled concurrently. Verify the record content after each adjustment, including those intended only to change the TTL. Automated tenant onboarding relies heavily on this evidence, separate from any inbox or OTP delivery concerns. The three accounting buckets for this process are the execution of changes and checks, waiting for cached answers to expire, and retaining the state needed to explain or reverse changes.

The first bucket is the only one likely to incur provider charges. When planning, consider a scenario with an original TTL of 86,400 seconds and a temporary TTL of 300 seconds. If the update is moved to the previous day, the cached answer can remain valid for the original duration. The new 300-second TTL does not retroactively shorten the cached time.

For original TTLs exceeding a day, extend the preparation interval accordingly. After scheduling the changes, restore the state using the exact saved TTL instead of a default value. This closes the temporary cache policy while also maintaining a longer cache lifetime for future emergency changes. When deciding to accept the trade-off between temporary TTLs and longer cache lifetimes, rely on the observation window rather than just the successful completion of the cutover job.

The audit fields should include the record identity, original TTL, original content, intended new content, and associated observations, but should not be submitted as a provider request schema. Retain access to this evidence, but avoid copying tenant DNS state into every worker log to prevent additional retention issues without improving the restore process.

To implement pre-change TTL lowering as a scheduled DNS step, follow these three sequential steps: Begin at least one original cache lifetime before the cutover, lowering the TTL while retaining the original content. At the time of the change, apply the intended content while keeping the temporary TTL intact, then read back both values.

After the established observation window, restore the saved TTL while preserving the new content, and read back once more. This final step ensures a clear distinction between restoring the original record snapshot and applying the new content with the modified TTL. Begin by reading the record using the provided Python example, which uses the ENV variables INFRAI_API_BASE and INFRAI_API_KEY to access the service's version-one API.

Implement retry logic with exponential backoff to handle rate limits. Install the 'requests' library in the execution environment, then read the records and check for errors, respecting the Retry-After header when applicable. The next Python example creates a local schedule manifest that includes fields specific to the local plan, without submitting any jobs or assuming a DNS provider's payload shape.

This scheduling logic is applicable to a Node.js worker as well, while the example keeps the cache arithmetic visible without using SDK details.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

See today's edition · More options

More in Tech

More from Saturday, 5 December 2026 →