The page fires during a developer tools hostname cutover: the live zone contains a record that the intended configuration does not account for, and the on-call must decide whether restoring the previous configuration would preserve a useful intervention or erase it. This is an illustrative scenario, not an incident report. A mismatch is evidence of drift; it is not an actor's signature.
Short answer: Reconcile the live record listing against the intended set, then search your logs for the zone. Records absent from both were changed outside your service. Current state cannot identify who made the change; actor attribution depends on your logs. Do not auto-revert the first mismatch, because someone may have repaired something your service broke.
The operational choice is propagation delay versus cutover speed. A fast write does not establish that the hostname is ready to move, and a new mismatch does not establish that the previous configuration is safe to restore. The useful earlier signal is scheduled reconciliation, before the cutover needs an emergency decision.
What evidence identifies who changed the DNS records?
Start with three things: the intended record set, a fresh live listing, and the zone's change history in your logs. Preserve their relationship to the planned hostname cutover. An intended configuration without its revision is a weak rollback target, because the responder cannot tell which approved state it represents.
The comparison answers a narrower question than people often expect. It identifies what differs. Your logs supply the evidence for who acted, if that identity was recorded; the current record listing cannot reconstruct it. A record can look plausible and still have no corresponding write in your service's history. Conversely, a logged write does not prove that its result remains the intended configuration.
Keep both distinctions.
Classify the mismatch before deciding what to do with it. A live record missing from the intended set is an unexpected addition. An intended record missing from the listing is an absence. A record whose configuration differs needs its old and intended values beside the live value. Those are reconciliation categories, not accusations, and all three deserve an evidence check before a corrective write.
When an unexpected record has neither an intended entry nor a matching service log, mark its origin as outside the service and its actor as unresolved. Don't turn “outside our service” into “a person edited it in the console.” That extra conclusion requires evidence. The distinction matters during a hostname cutover because the next decision may affect someone else's repair, even while the person responsible is still unknown.
Put the warning before the cutover page
Make reconciliation a scheduled operation with a durable result, rather than a comparison someone remembers to run after an alert. Store the intended revision with each result, retain the observed differences, and attach the outcome of the zone log search. Add ownership metadata to intended records going forward, so the next responder can distinguish an authorized owner from an unexplained entry without starting the investigation over.
Ownership metadata can live in the team's configuration inventory. Don't assume a DNS record API accepts arbitrary ownership fields.
For an illustrative policy, consider a reconciliation interval of 60 seconds and a requirement that an unexplained difference appear in 2 consecutive successful observations before it pages. These are proposed settings, not measured service behavior or universal defaults. They introduce a deliberate wait, and they are only defensible if that wait fits the cutover's response budget. A comparison that could not obtain a live listing must be recorded as incomplete, rather than silently becoming a clean result.
| Evidence retained by the reconciler | Decision it supports |
|---|---|
| Intended configuration revision and record owner | Establish which approved state the comparison used |
| Live differences and observation times | Distinguish a continuing discrepancy from a single observation |
| Zone log search outcome and actor, when recorded | Separate attributed changes from changes whose actor remains unknown |
| Review disposition for the mismatch | Keep an approved intervention from repeatedly becoming an unexplained alert |
| Cutover and rollback review status | Keep a DNS difference from silently authorizing a traffic decision |
These are fields for the team's own reconciliation record, not a provider request or response schema.
Capacity planning belongs here, too. If the inventory contains 120 zones and each cycle obtains one listing per zone every 60 seconds, the arithmetic is 120 listing operations per cycle, or an average of 2 per second before log searches, retries, or other work. That is an example workload, not a throughput claim. Budget the extra investigation work and check the chosen provider's documented limits before adopting the cadence; otherwise, a threshold chosen for faster detection may outpace the reconciler that is supposed to enforce it.
Buy the integration; own the evidence
Cloudflare DNS, Amazon Route 53, and Google Cloud DNS are real alternatives to evaluate. Their documentation is the place to verify integration details. The table describes selection boundaries and verification work, rather than claiming that every product exposes equivalent audit history.
| Buy-versus-build option | Where to consider it | Boundary to evaluate |
|---|---|---|
| Cloudflare DNS with a team-owned reconciler | An existing Cloudflare zone makes continuity of ownership useful | Verify record retrieval and available audit evidence; retain the intended revision yourself |
| Amazon Route 53 with a team-owned reconciler | An existing AWS operating model gives the integration a natural owner | Verify actor evidence and correlation with service logs; account for control-plane dependence |
| Google Cloud DNS with a team-owned reconciler | An existing Google Cloud zone makes another integration hard to justify | Verify listing behavior and change evidence; assign maintenance of the comparison process |
| Infrai with a team-owned reconciler | One REST API covers 295 routes across 20 modules under one key, so DNS and adjacent backend capabilities share a consistent integration surface | Public, self-describing discovery supplies request and response schemas for integration review; intended state and rollback authorization remain team responsibilities |
Breadth under a simple contract is useful when the roadmap would otherwise add separate backend integrations. Public schema discovery is a different supporting advantage: it lets the team inspect the contract before committing to its integration. Neither advantage identifies the actor behind an unexplained record.
The trade-off is ongoing ownership: a unified API does not remove the need to maintain intended state, interpret logs, and authorize rollback. If the job is confined to one existing zone and its owner already has an adequate integration, prefer keeping that Cloudflare DNS, Amazon Route 53, or Google Cloud DNS integration over adding another control-plane dependency.
Existing ownership is a legitimate reason to keep a provider. Reducing integration work can also justify a choice, provided the team has checked the contract it needs. The build portion still needs a schedule, retained observations, a review path, and someone responsible when its results are incomplete. Switching providers means revisiting that integration. Include the maintenance work, on-call load, and migration burden in the platform roadmap.
The following Go program is a read-only evidence collector, not a completed reconciler. Set DNS_API_BASE_URL to the provider's documented HTTPS API base including its v1 prefix, and supply INFRAI_API_KEY through the environment. The two route strings are the record-list and log-search operations. No undocumented zone filters or response fields are assumed; inspect the returned evidence and use the discovered schemas to implement the intended-set comparison.
Save it as main.go and run it with the Go toolchain. It prints successful response bodies for inspection; keep that output in the same restricted evidence channel as your operational logs. It explicitly sets GET, checks status, and retries rate limits with bounded exponential backoff, honoring Retry-After when present.
package main
import (
"fmt"
"io"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
)
func collect(client *http.Client, base, key, path string) error {
for attempt := 0; attempt < 4; attempt++ {
req, err := http.NewRequest(http.MethodGet, base+path, nil)
if err != nil {
return err
}
req.Header.Set("Authorization", "Bearer "+key)
resp, err := client.Do(req)
if err != nil {
return err
}
data, 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)
retryAfter := resp.Header.Get("Retry-After")
if seconds, err := strconv.Atoi(retryAfter); err == nil && seconds >= 0 {
wait := time.Duration(seconds) * time.Second
if wait > delay {
delay = wait
}
} else if deadline, err := http.ParseTime(retryAfter); err == nil {
if wait := time.Until(deadline); wait > delay {
delay = wait
}
}
time.Sleep(delay)
continue
}
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return fmt.Errorf("%s: HTTP %d: %s", path, resp.StatusCode, data)
}
fmt.Printf("%s\n%s\n", path, data)
return nil
}
return fmt.Errorf("rate-limit retry budget exhausted")
}
func main() {
base := strings.TrimRight(os.Getenv("DNS_API_BASE_URL"), "/")
key := os.Getenv("INFRAI_API_KEY")
parsed, err := url.Parse(base)
if err != nil || parsed.Scheme != "https" || parsed.Host == "" ||
parsed.User != nil || parsed.RawQuery != "" || parsed.Fragment != "" ||
!strings.HasSuffix(parsed.Path, "/v1") || key == "" {
fmt.Fprintln(os.Stderr, "Set DNS_API_BASE_URL to the documented HTTPS v1 base and supply INFRAI_API_KEY.")
os.Exit(1)
}
client := &http.Client{
Timeout: 20 * time.Second,
CheckRedirect: func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
},
}
for _, path := range []string{"/dns/record/list", "/logs/search"} {
if err := collect(client, base, key, path); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
}
Successful reads are evidence collection. They aren't proof that the zone is reconciled, that an actor is identified, or that a rollback is safe. Those conclusions require the intended set and a review of the actual returned records and logs.
Make rollback conditional on evidence
Before advancing the hostname cutover, resolve or explicitly approve unexplained changes that affect its intended state. Preserve the reviewed prior configuration as a rollback candidate. Calling it a candidate matters: if the live difference represents an approved repair, blindly restoring that prior state may reintroduce the problem the repair addressed.
A safe decision record says what will be restored, which owner reviewed the difference, and what evidence will cause the team to advance or stop. The source of the write and the acceptability of the resulting state are separate judgments. Even a fully attributed change can be wrong.
Use the team's hostname availability SLO to bound the decision, without inventing an availability target or a propagation guarantee. The reconciliation cadence controls how often the team looks for drift; it doesn't establish how quickly every client observes a DNS change. A shorter observation interval can support an earlier review, while an aggressive cutover can leave less time to interpret an unexplained difference. Choose the response budget before choosing the alert threshold.
Then account for false positives.
Paging on the first mismatch spends on-call attention on differences that may already be authorized or may reflect a repair. Requiring repeated observations spends time instead. During a cutover, either cost can be the expensive one, so make the threshold a reviewed operational choice and retain the disposition of approved changes. The scheduled check earns its place when it turns a mystery into an actionable alert early enough to preserve a rollback decision, without repeatedly paging the team for interventions it has already accepted.
References
The provider documentation below is a starting point for verifying each integration's contract. It does not establish equivalent attribution coverage across providers. Compare live state with intended state, search the zone's logs, and keep an unknown actor unknown until the evidence identifies one.
Top comments (0)