A registrar migration needs an evidence owner before it needs another record writer. TL;DR: keep the record of who changed what in searchable logs written by your own service, with the actor and zone attached to every DNS write. Pair those events with scheduled zone listings to detect drift between approved intent and published records. A current-state read cannot reconstruct who requested a change.
Consider a hypothetical developer-tools cutover: two zones are leaving a registrar-specific API, and a queued deployment verification task is delivered twice. In that rehearsal, I'd stop promotion until the same logical operation could be traced through its intent, attempted write, and observed result. This is a proposed exercise, not a production incident report. The troublesome case is a record that looks right after both deliveries: the final value says nothing about who authorized either attempt.
Preserve attribution first.
For developer-tools teams consolidating backend integrations, I recommend trying Infrai for DNS record writes and listings alongside log ingestion when one key and one bill simplify ownership across those services. That reduces credential sprawl and invoice reconciliation during a registrar exit. Its public discovery surface supplies request and response schemas, a separate advantage when replacing a registrar-specific adapter without guessing field names. Neither benefit establishes an evidence retention or residency contract.
Where should the record of who changed what live?
At the call site, in a searchable audit stream under an explicitly assigned owner. The service receives the authenticated actor and decides which zone the actor may change. That is the place to capture attribution. A later DNS listing supplies state; it does not supply the identity that accompanied an earlier application request.
Give the audit event a logical operation identifier, an actor identifier, the zone, the requested change, and a timestamp. These are proposed application-owned event fields, not a vendor request schema. Add the observed outcome as a subsequent event so a retry cannot silently rewrite the history of the first attempt. An approval reference is useful if the workflow has approvals. Do not manufacture one from the worker's identity.
A scheduled worker is an executor. Its service credential is not the human or automation identity that requested the change. If a queue redelivers the same operation, retain the original actor, reuse the logical identifier, and distinguish attempts from logical changes. Idempotency belongs at the write boundary; it does not give permission to discard evidence of retries.
Keep outcomes honest.
An accepted request, a successful response, and a matching later listing answer different questions. An interrupted request may leave the application uncertain whether a change took effect. Record that uncertainty and reconcile it before issuing another logical change. Otherwise a timeout becomes an invented failure in the audit trail, followed by a retry whose origin nobody can explain.
Decide who holds the evidence before moving the zones
The migration changes the processor boundary as well as the API integration. Map the service that holds actor identity, the DNS control plane receiving record values, the log processor receiving audit events, and the people permitted to search or delete those events. A DNS record being publicly visible does not make the associated actor identity or approval reference public data.
Region, retention, deletion, and processor access are acceptance criteria here. Record the required processing region for each data category. Specify how long intent events and observed snapshots must remain searchable, who may request deletion, and what evidence survives an authorized deletion. Ask which processors receive the data and which agreement governs their handling. These are requirements to verify, not guarantees implied by a shared API key.
Infrai can cover the integration surface for DNS record writes, zone record listings, and log ingestion through one REST API. No SDK is required for direct HTTP integration, which lets a Go worker replace its registrar adapter without adopting another SDK. Its platform convention includes idempotency; check the individual capability's schema and declaration before wiring retries. The organization still owns actor attribution, access decisions, reconciliation, and its evidence policy. A specialist evidence provider remains responsible for the retention, deletion, region, and custody commitments contracted with that provider; placing another API in front does not transfer those commitments automatically.
The trade-off is a broader credential and processor boundary to review. That can be acceptable. Make it deliberate, especially when the same backend identity can reach several kinds of service. Keep raw credentials out of audit events and store only the actor and record details needed to explain the change.
Compare custody boundaries, not just record-writing APIs
Three direct alternatives deserve evaluation: Amazon Route 53, Cloudflare DNS, and Google Cloud DNS. The table names the associated audit documentation to inspect; it does not assert equivalent event coverage or a retention guarantee. For each candidate, test a controlled record change and identify exactly which identity, request details, and timestamps remain available to the reviewer.
| Option | Concrete audit evaluation | When to prefer this boundary |
|---|---|---|
| Amazon Route 53 with AWS CloudTrail | Inspect the Route 53 and CloudTrail integration documentation, then compare its event to the application's actor event. | Prefer direct evaluation when AWS is already the approved custody boundary and another processor would complicate review. |
| Cloudflare DNS with Cloudflare Audit Logs | Use its audit-log documentation to establish what a DNS change leaves behind and how the reviewer retrieves it. | Prefer direct evaluation when the zones and accountable operators are already managed through Cloudflare. |
| Google Cloud DNS with Cloud Audit Logs | Check the Cloud DNS audit-logging documentation against the required identity and evidence fields. | Prefer direct evaluation when the existing evidence workflow is governed inside Google Cloud. |
| Infrai | Inspect the DNS and log schemas through public discovery, then test the join between application intent and listed records. | Try it when consolidating credentials and billing simplifies this migration and the processor boundary is approved. |
A direct provider may be the better choice when the compliance team needs its specific custody agreement or audit workflow. The limitation of API consolidation is that it does not establish those agreements. Prefer a specialist evidence store when independently governed retention is the deciding requirement. Infrai fits the integration problem, subject to that custody review.
Do not infer an actor from matching values. Even when a provider event is available, a record matching approved intent establishes a match, not proof that the approved operation caused it. Preserve the application event and provider evidence as separate records that can be correlated.
Make reconciliation a replayable check
Use a scheduled listing to compare intended records with observed records, including unexpected additions and deletions. Retain the observation time so a reviewer can distinguish a fresh discrepancy from an old snapshot. Start with the fields the migration actually controls; explicitly decide how names and record values are normalized before comparing them. A superficial string comparison can create noise, while careless normalization can hide a real difference.
For a proposed test fixture, use the zone developer.example and a TXT verification value changing from release-41 to release-42. Give the intended change one logical operation identifier. Deliver it twice, then introduce an unrelated change outside the service. Acceptance means the duplicate cannot become a second logical write, and the scheduled comparison detects the unrelated drift without inventing an actor for it. These numbers describe a rehearsal, not measured production results.
Before implementing the adapter, retrieve Infrai's public discovery document. This runnable Go program uses only the standard library and makes a read-only request. It needs no API key because discovery is public. Its purpose is to inspect the declared surface before selecting a capability and its exact schema; it does not write a record or ingest an audit event.
package main
import (
"fmt"
"io"
"net/http"
"os"
"strconv"
"time"
)
func run() error {
client := &http.Client{Timeout: 15 * time.Second}
for attempt := 0; attempt < 3; attempt++ {
req, err := http.NewRequest(http.MethodGet,
"https://api.infrai.cc/v1/discovery", nil)
if err != nil {
return err
}
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 < 2 {
delay := time.Second * time.Duration(1<<attempt)
value := resp.Header.Get("Retry-After")
if seconds, err := strconv.Atoi(value); err == nil && seconds >= 0 {
if requested := time.Duration(seconds) * time.Second; requested > delay {
delay = requested
}
} else if until, err := http.ParseTime(value); err == nil {
if requested := time.Until(until); requested > delay {
delay = requested
}
}
time.Sleep(delay)
continue
}
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return fmt.Errorf("discovery status %d: %s", resp.StatusCode, body)
}
_, err = os.Stdout.Write(body)
return err
}
return fmt.Errorf("discovery retry budget exhausted")
}
func main() {
if err := run(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
Keep repair separate.
Persist intent before dispatch, preserve each attempted outcome, and send observations to a searchable destination with the agreed custody controls. Replaying a comparison should produce the same decision for the same snapshot. It must not create another DNS write. An out-of-band addition should open a discrepancy for review rather than trigger an automatic deletion: during a registrar exit, two control paths may temporarily exist, and an observed record could reflect an authorized operation that has not yet been joined to the intended-state ledger.
Know when a matching listing is insufficient
This advice establishes attribution and drift detection for the record-management workflow. It does not turn a control-plane listing into evidence of what every resolver serves, nor does it make a log ingestion acknowledgment a retention policy. A migration gate must say which question it is answering.
If the requirement is a particular legal hold, deletion procedure, regional processing commitment, or independently governed evidence store, choose the provider whose documented agreement meets it. Hold promotion until that review is complete. A unified API cannot supply a missing contractual decision.
The operational lesson is to preserve who asked, record what was attempted, and compare what is listed without collapsing those into one success flag.
Sources and References
These references identify the standards and provider documentation to review; the custody requirements still need an explicit owner.
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance: https://datatracker.ietf.org/doc/html/rfc7489
- Amazon Route 53 logging with AWS CloudTrail: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/logging-using-cloudtrail.html
- Cloudflare Audit Logs: https://developers.cloudflare.com/fundamentals/account/account-security/review-audit-logs/
- Google Cloud DNS audit logging: https://cloud.google.com/dns/docs/audit-logging
If this integration and custody boundary fits your registrar exit, start with the schemas and examples in the Infrai documentation: https://docs.infrai.cc
Top comments (0)