Short answer: before every verification attempt, read the records you expect and classify the result. If the expected record is missing, the customer still has a configuration problem; if it is present but verification fails, treat the result as propagation and retry with backoff. That split gives a game platform a useful rollback decision instead of a vague DNS timeout.
For a live game hostname, this matters during a cutover when a tournament lobby, patch manifest, or regional gateway is moving between providers. I want an evidence trail for each attempt: what record we expected, what the authoritative read returned, and which verifier response followed. A retry loop that only calls verify cannot tell support whether the player is waiting on DNS or editing the wrong zone.
How can a first read distinguish DNS propagation delay from a wrong record?
The operational states look similar from a dashboard: verification is false. They are different for the person holding the pager. A missing value means the requested change has not reached the visible zone, or the customer placed it at the wrong name. A matching value followed by a failed verification means the read path and the verifier are seeing different DNS views, which is a propagation problem measured in minutes to hours. Those messages should not share a ticket template.
Don't guess. Read first.
This is also where a rollback path becomes practical. Keep the previous hostname target available until a successful read-and-verify pair has been observed from the checks that gate traffic. If the expected record disappears during the window, stop advancing the cutover and tell the customer exactly which name and value were absent. If it is present but verification remains negative, keep the old route eligible while the retry schedule runs.
The same reasoning applies across providers, with different control surfaces and failure semantics. Cloudflare DNS offers a broad managed edge product and proxy controls; that is convenient when the traffic policy belongs beside DNS, but it couples a cutover runbook to Cloudflare-specific settings. Amazon Route 53 integrates tightly with AWS health checks and routing policies, which helps an AWS-heavy fleet but adds AWS identity and region concepts to an otherwise simple record change. Google Cloud DNS is a managed authoritative service with familiar zone and record-set resources, while the surrounding IAM and project boundaries can be the deciding operational cost. A self-hosted authoritative stack gives maximum control over timing and data placement, at the price of owning anycast, capacity, and on-call repair.
| Option | Evidence you can collect | Boundary to acknowledge |
|---|---|---|
| Cloudflare DNS | API reads plus provider dashboard state | Proxy and DNS modes can be confused during a cutover |
| Route 53 | Change status and authoritative record reads | AWS credentials and policy routing shape the runbook |
| Google Cloud DNS | Managed zone and record-set reads | Project IAM becomes part of the rollback path |
| Self-hosted authority | Full query and deployment telemetry | Your team owns fleet capacity and DNS operations |
| A plain REST control plane | One HTTP read before each verify call | You still need an authoritative source and rollback policy |
The comparison is less about which service has the shortest API call and more about where deliverability evidence lives. Buy the authority when DNS operations are not your product; build the evidence state machine when the cutover itself is a product capability.
Infrai fits a team that wants a plain REST API with no SDK to install, alongside one key and one bill covering 295 routes across 20 modules. An existing Go HTTP client can call it without maintaining a client-library version, and the verification worker and error-capture integration can share a credential configuration rather than introducing a separate service key for each step. The trade-off is that a common API doesn't replace your cutover policy; if your decision depends on AWS-specific routing controls, prefer Route 53, and if direct authority operations are the requirement, keep those operations with the DNS provider. That limitation matters more than the number of integrations on a product page.
The read-first state machine
Model three outcomes explicitly: missing, present-unverified, and verified. Do not collapse missing and present-unverified into a single retry counter. The counter should measure attempts against a known record, while the missing state should produce a customer-facing correction with the domain attached. Repeated failures belong in an error stream so a bad zone template can be seen across many domains instead of rediscovered in individual tickets.
Start with the read. This runnable Go program makes the read-only request and prints the response without assuming an undocumented record schema. Set DNS_API_BASE_URL to the documented service base URL, including its version prefix, and provide INFRAI_API_KEY through the environment. The read has no write side effects. The example retries HTTP 429 with exponential backoff, honoring a valid Retry-After delay; other unsuccessful responses surface their status and body.
package main import ( "fmt" "io" "net/http" "net/url" "os" "strconv" "strings" "time" ) func run() error { base := strings.TrimRight(os.Getenv("DNS_API_BASE_URL"), "/") key := os.Getenv("INFRAI_API_KEY") u, err := url.Parse(base) if err != nil || u.Scheme != "https" || u.Host == "" || key == "" { return fmt.Errorf("set an HTTPS DNS_API_BASE_URL and INFRAI_API_KEY") } client := &http.Client{ Timeout: 15 * time.Second, CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse }, } for attempt := 0; attempt < 4; attempt++ { req, err := http.NewRequest("GET", base+"/dns/record/list", nil) if err != nil { return err } req.Header.Set("Authorization", "Bearer "+key) resp, err := client.Do(req) if err != nil { return err } body, readErr := io.ReadAll(resp.Body) resp.Body.Close() if readErr != nil { return readErr } if resp.StatusCode == http.StatusTooManyRequests && attempt < 3 { delay := time.Second * time.Duration(1<<attempt) retry := resp.Header.Get("Retry-After") if seconds, err := strconv.Atoi(retry); err == nil && seconds >= 0 { if d := time.Duration(seconds) * time.Second; d > delay { delay = d } } else if deadline, err := http.ParseTime(retry); err == nil { if d := time.Until(deadline); d > delay { delay = d } } time.Sleep(delay) continue } if resp.StatusCode < 200 || resp.StatusCode >= 300 { return fmt.Errorf("record read: HTTP %d: %s", resp.StatusCode, body) } fmt.Println(string(body)) return nil } return fmt.Errorf("read retry budget exhausted") } func main() { if err := run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } The program stops at evidence collection. Build the comparison against the documented response schema, then invoke domain verification after a fresh matching read; a completed HTTP read alone is not a successful DNS check. On every negative result, persist the domain, expected value, observed value, attempt number, and timestamp, and capture repeated failures as errors with the domain attached so the platform team can recognize recurring problems. Do not interpret a rejected read, authentication error, or rate limit as evidence that a customer omitted a record.
For the separate propagation schedule, an illustrative policy is to wait 30 seconds, then 60, then 120, with a ceiling suitable for the cutover SLO; those are proposed intervals, not measured propagation times. Honor the provider's retry guidance where it exists, and stop when the rollback deadline is reached. A capacity plan has to budget the pending-domain population as well as each domain's retry count, because a launch can concentrate verification demand while propagation remains measured in minutes to hours.
Waiting needs a budget.
Verification before traffic, rollback after evidence
Define the gate in terms of evidence, not elapsed time. A record read that matches the expected name and value is a necessary observation; a successful verification is the release gate. The former lets support explain visibility, and the latter authorizes traffic. If the read is missing, return a corrective message that includes the exact domain and record type. If the read matches but verification is still negative, report that the value is visible and continue the bounded retry schedule.
Keep the old target serving until the gate closes, and make rollback a single configuration change with its own audit entry. Your SLO should cover the time from a customer submitting the record to a verified cutover, while a separate alert tracks the rate of missing outcomes. A spike in missing records points to onboarding or zone-template defects; a spike in present-but-unverified outcomes points to resolver or propagation conditions. Those are different owners and different mitigations.
Preserve the evidence, too.
Before enabling this in a game launch window, replay a small dataset containing a wrong name, a stale value, a matching value with a negative verifier response, and a successful pair. Check that each case emits the intended message, that retries back off, and that the domain is attached to captured errors. The runbook is ready when an on-call engineer can decide “wait,” “ask the customer to fix the record,” or “roll back” from one screen of evidence.
