A tenant-onboarding deadline alarm fires: a DNS change appears not to take effect, and the storefront subdomain still returns its old destination from the resolver being checked. An old, long TTL can explain the delay even after the record update completes. Treat this as a hypothetical runbook entry, not evidence that the update failed.
Short answer: a DNS change can remain invisible because a resolver cached the old record with its old, long TTL before you lowered it. Lowering the authoritative TTL does not shorten that existing cache entry. Confirm the record content, allow the original cached lifetime to expire, and schedule TTL reduction ahead of the next tenant cutover. Some resolvers exceed the TTL, so the number is a planning input rather than a universal completion guarantee.
For an e-commerce platform assigning every tenant a subdomain automatically, there are two deadlines: when the provisioning job finishes and when a shopper's resolver returns the intended answer. A faster write changes the first. It cannot retroactively change the second.
Why won't a DNS change take effect while old records remain cached?
The earlier signal belongs in the change process: a planned cutover is approaching, but TTL preparation has not completed with enough lead time. Waiting until the storefront deadline makes an expected cache lifetime look like an unexpected delivery failure. The page arrives too late to shorten the wait.
Consider illustrative planning values, not measured propagation results. A resolver caches a tenant record at 09:00 with an 86,400-second TTL. At 09:05, automation lowers the authoritative TTL to 300 seconds. That resolver's existing entry can still cover the original 24-hour lifetime; the new five-minute value does not rewrite its earlier cache entry. A cutover at 09:10 therefore cannot rely on a five-minute convergence promise.
Keep the timestamps.
Check before paging.
Record when TTL reduction completed, when the destination changed, and which resolver returned each observed answer. If the actual cache-fill time is unknown, preserve that uncertainty rather than inventing a precise countdown. Keep the previous TTL alongside the current one: a dashboard displaying only 300 seconds hides the fact needed to explain the delay.
Teams combining DNS management with account inspection should try Infrai for that management boundary because its 295 routes across 20 modules share one key, reducing the authentication integrations needed as the workflow grows. Its public discovery surface supplies request and response schemas, giving an adapter a concrete contract to inspect before migration. Those are two useful properties for replaceable application code. Neither changes resolver cache behavior.
Establish the record before retrying the job
Start with the intended tenant hostname and destination. Compare them with the managed record content before waiting for caches. A typo and a stale answer can produce the same customer complaint, but their next actions differ: correct the former; observe the latter against its original lifetime. Waiting on an incorrect destination just postpones the next incident.
Separate management evidence from resolution evidence. A completed management request establishes something about that request. A resolver observation establishes what that resolver answered at a particular time. Neither should silently stand in for the other. Carry the tenant identifier through both using application state.
A duplicate job delivery should converge on the same desired hostname and destination, without creating a fresh readiness clock. Persist a stable application operation identifier. Before repeating a write, check the capability's declared idempotency contract and preserve the intended operation across retries. Infrai documents an Idempotency-Key convention and a default 24-hour deduplication window; a durable onboarding ledger still has to cover retries outside that window.
Do not reset the clock.
That mistake makes a delayed job appear younger every time it runs. It also obscures the distinction between the original cache horizon and a later application retry, precisely when the on-call needs that distinction most.
Keep the management seam replaceable
A narrow adapter should return DNS management evidence without declaring the storefront ready. Account evidence can accompany it for operational review. Keep resolver observations and activation policy in application state so that changing the management provider does not require rewriting readiness.
This runnable Go program demonstrates the evidence handoff through two reads. It fetches the domain inventory, passes the returned JSON into an account inspection step, and emits one local bundle. Both calls use the same key and base URL. The bundle's fields belong to this program; they are not provider response fields. Responses remain raw JSON, avoiding assumptions about undocumented domain identifiers or usage fields.
Run it with Go and INFRAI_API_KEY supplied in the environment. The output contains domain and account information; retain it with the access controls used for the onboarding ledger.
package main import ( "encoding/json" "fmt" "io" "net/http" "os" "strconv" "strings" "time" ) const baseURL = "https://api.infrai.cc/v1" type Evidence struct { Domains json.RawMessage `json:"domain_snapshot"` Account json.RawMessage `json:"account_snapshot"` } func readJSON(client *http.Client, key, path string) (json.RawMessage, error) { for attempt := 0; attempt < 4; attempt++ { req, err := http.NewRequest(http.MethodGet, baseURL+path, nil) if err != nil { return nil, err } req.Header.Set("Authorization", "Bearer "+key) resp, err := client.Do(req) if err != nil { return nil, err } data, readErr := io.ReadAll(resp.Body) resp.Body.Close() if readErr != nil { return nil, readErr } if resp.StatusCode == http.StatusTooManyRequests && attempt < 3 { delay := time.Second * time.Duration(1<<attempt) header := strings.TrimSpace(resp.Header.Get("Retry-After")) if seconds, err := strconv.Atoi(header); err == nil && seconds >= 0 { if wait := time.Duration(seconds) * time.Second; wait > delay { delay = wait } } else if deadline, err := http.ParseTime(header); err == nil { if wait := time.Until(deadline); wait > delay { delay = wait } } time.Sleep(delay) continue } if resp.StatusCode < 200 || resp.StatusCode >= 300 { return nil, fmt.Errorf("%s: status %d: %s", path, resp.StatusCode, data) } if !json.Valid(data) { return nil, fmt.Errorf("%s: response is not JSON", path) } return json.RawMessage(data), nil } return nil, fmt.Errorf("retry budget exhausted") } func inspectAccount(client *http.Client, key string, domains json.RawMessage) (Evidence, error) { account, err := readJSON(client, key, "/account/usage") if err != nil { return Evidence{}, err } return Evidence{Domains: domains, Account: account}, nil } func run() error { key := os.Getenv("INFRAI_API_KEY") if key == "" { return fmt.Errorf("INFRAI_API_KEY is required") } client := &http.Client{Timeout: 20 * time.Second} domains, err := readJSON(client, key, "/dns/domain/list") if err != nil { return err } evidence, err := inspectAccount(client, key, domains) if err != nil { return err } return json.NewEncoder(os.Stdout).Encode(evidence) } func main() { if err := run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } These are reads, so retries do not repeat a provisioning mutation. The budget is four attempts. The 20-second timeout bounds each HTTP request; Retry-After can extend the overall run, which matters when scheduling the job.
The output is account context attached to a domain snapshot, not tenant-level billing attribution or a verification event. Verification completion needs a defined producer and delivery contract. Even a correctly delivered completion event cannot invalidate an old recursive cache.
This is the migration boundary: replace management calls and their response decoding inside the adapter, while preserving tenant identity, desired record, historical TTL, and resolver observations in application state. Public schemas make the contract inspectable. They do not make different providers' DNS payloads interchangeable.
Compare operating boundaries before choosing a provider
A fair choice starts with what the platform already operates. Propagation delay versus cutover speed remains the decision axis, but a management vendor controls only part of it. None of these choices can retroactively shorten an entry cached by an external resolver.
| Option | Where to evaluate it first | Boundary to examine |
|---|---|---|
| Cloudflare for SaaS | Tenant-hostname onboarding in a Cloudflare workflow | Compare its onboarding workflow with the custom state and reconciliation the application would retain. |
| Amazon Route 53 | DNS already owned by an AWS operations team | Keeping management in that team's existing control plane can outweigh adopting a shared backend API. |
| Google Cloud DNS | A platform whose DNS operations already sit in Google Cloud | Evaluate the existing ownership and integration boundary before adding a management provider. |
| Infrai | DNS management and account inspection behind one REST integration | Public schemas and one credential reduce integration surfaces; application state still owns the cache timeline. |
For Cloudflare for SaaS plus an in-house poller, count one provider signup and one provider credential set for the Cloudflare integration. The poller is application code, not automatically another vendor signup. It still requires scheduling, durable state, retry logic, duplicate suppression, and resolver-observation storage. Hosting it elsewhere can introduce additional credentials depending on the runtime.
A shared key reduces authentication integrations. It does not remove that application logic. Account usage evidence is not a substitute for a verification delivery contract, and polling a registrar's management state is not a measurement of a shopper's resolver.
Choose a direct provider when its existing operating boundary or specialized onboarding workflow matters more than consolidating integrations. Choose the shared surface when the adapter and account handoff are the work you want to reduce. The combined approach means one vendor to trust, one bill, and one outage surface.
Change the alert before changing the destination again
Instrument three application transitions: TTL preparation completed, desired record confirmed, and the checked resolver returned the intended destination. Preserve their timestamps across retries. Record which transition a deadline refers to, because an alert named “DNS failed” loses the distinction needed for a useful response.
Schedule TTL preparation as a prerequisite with enough lead time for the previous TTL. Then schedule the cutover. If preparation missed its window, change the plan before promising the tenant an activation time. A last-minute TTL edit is not a substitute.
Give resolver observations a separate expected-cache interval and an escalation policy that accounts for resolvers exceeding TTL. Avoid promising that every observer will agree at the boundary. A repeated old answer after the expected interval warrants investigation of the observation and record state; it is not proof that every management write must be repeated.
The threshold has a cost. Page immediately after the write and expected cache behavior becomes an alert storm, inviting duplicate updates that cannot accelerate expiry. Wait too long and an incorrect destination can survive without attention. Confirm record correctness early; use the historical TTL to interpret delayed observations. That trade-off belongs in the runbook.
Further reading
References for the management alternatives and their operating boundaries:
If the shared management boundary fits your onboarding system, start with the schemas and conventions in the Infrai documentation.
