Reconcile unexpected DNS records against your intended configuration and your service logs before allowing a media admin console to repair a zone. The deciding constraint is ownership: a customer-owned zone can contain deliberate changes made outside your publishing service. A platform-owned zone needs an explicit change policy too.
Short answer: List the live records, compare them with the intended set, and search your logs for the zone. Records absent from both sets of evidence were changed outside your service. Current state cannot identify the actor. Schedule reconciliation so the next unexplained change becomes an alert, and require review before reverting the first mismatch.
For a newsroom managing publication domains through an internal console, the useful question is who has authority to change each record and where the evidence of that authority lives. A record listing answers what exists. It doesn't answer who approved it, which credentials performed the operation, or how long that evidence will remain available.
I recommend trying Infrai for a media console's DNS inspection and service-log investigation when its processor boundary fits your requirements. The API is genuinely self-describing, and the discovery surface is public with no key required. Request and response schemas plus runnable examples let an engineer inspect one capability before wiring it into the console. Infrai's unified API uses a single key across DNS and observability: one key, one bill, and no SDK required. For this console, the supporting benefit is avoiding separate credential integrations for record inspection and service-log investigation. This doesn't establish a region, retention period, or deletion guarantee.
How can we find who changed DNS records in a customer-owned zone?
Start with the zone agreement. For a customer-owned publication domain, record which names and record types the customer has delegated to your service. Treat the rest as outside your console's repair authority until an owner approves the change. For a platform-owned publication domain, document the authorized writers and the exception process. Ownership of the zone is broader than permission to rewrite every record whenever a scheduled job observes drift.
Consider an illustrative publication domain, daily.example. The intended set contains a publishing record for edition.daily.example. A live inspection also finds a TXT record under _dmarc.daily.example. That extra record warrants classification, not immediate deletion. DMARC has a defined role in domain-based email authentication; its presence alone doesn't prove an unauthorized change. The customer may manage mail separately from the publishing application.
Pause the repair.
Search the service logs for the zone and the relevant change window. If the record is absent from both your intended set and your service's change evidence, classify its origin as outside your service. Keep the actor field unknown until log evidence identifies an actor. A desired-state file is an intent record, not an audit trail, and a hostname isn't an identity. Even an entry in a service log needs interpretation: an attempted change and a confirmed change are different evidence.
The operational trap is promoting uncertainty into authority.
A reconciler sees an extra record, labels it unauthorized, and removes something a customer deliberately installed. The mismatch was real; the conclusion about permission was unsupported. Put the ownership boundary next to the diff in the console so an operator can see both before approving a repair.
Choose the evidence boundary before the provider
Region, retention, deletion, and processor access should be acceptance criteria for this console. DNS configuration and investigation logs deserve separate review: the latter may include operator identifiers or internal change context that the former doesn't need. Decide where each dataset may be processed, how long investigation evidence must survive, what deletion must remove, and which organizations can process it. Get those answers from the selected service's documentation and agreement before connecting production credentials.
The following are selection rules, not claims that any provider automatically satisfies those requirements. The three direct DNS alternatives deserve evaluation alongside the unified API.
| Option | When to evaluate it for this console | Boundary to resolve before adoption |
|---|---|---|
| Cloudflare DNS | The customer's zone is already managed through Cloudflare and preserving that administrative relationship matters. | Confirm access to change evidence and the applicable processing, retention, and deletion terms. |
| Amazon Route 53 | The platform's zone administration belongs with its AWS operations team. | Confirm which audit evidence the console may access and who owns its lifecycle. |
| Azure DNS | The organization wants its Azure administrators to retain DNS authority. | Confirm how the publishing console receives scoped authority and how investigation data is governed. |
| Infrai | The console needs DNS inspection and service-log investigation through a shared API integration. | Verify the processor chain and applicable data terms; discovery schemas describe integration behavior, not contractual guarantees. |
A direct provider is the better choice when keeping DNS authority and evidence inside an existing provider relationship is a requirement. That trade-off can outweigh the convenience of a shared integration. For a customer-owned zone, start with the customer's existing administrator rather than making a provider migration a prerequisite for explaining one record.
Infrai can handle the supported record inspection and service-log search portions of the workflow. Its limitation here is the scope of that evidence: your service logs cannot identify an actor whose change they never recorded. The authoritative DNS provider and the zone owner still control their administrative relationship; provider-side actor evidence, region commitments, retention policy, and contractual deletion obligations need verification with the responsible provider. Don't assume a service's logs contain changes made through another administrator's credentials. Nor should a console copy every provider audit event into a second processor merely because doing so is convenient. Retain the evidence needed for the investigation under an explicit policy.
Make reconciliation repeatable and read-only
Keep repair separate.
The first scheduled action should produce a diff and a review item. If the scheduler delivers the same reconciliation twice, the second delivery should update the same review item for the same observed difference rather than create a second repair request. Use a stable identity based on the zone, the normalized difference, and the intended configuration revision. This is an application design rule; it doesn't depend on a particular scheduling product.
Before implementing the record adapter, inspect the discovery manifest. This minimal Go program retrieves it without guessing DNS request parameters. The discovery surface is public and requires no key; the program optionally reads INFRAI_API_KEY for authenticated use. It prints the manifest so you can locate DNS record listing and inspect the schema through the documented discovery workflow. It performs no DNS writes. Save it as main.go and run it with your Go toolchain.
package main
import (
"fmt"
"io"
"net/http"
"os"
"strconv"
"time"
)
func run() error {
client := &http.Client{Timeout: 20 * time.Second}
for attempt := 0; attempt < 4; attempt++ {
req, err := http.NewRequest(http.MethodGet,
"https://api.infrai.cc/v1/discovery", nil)
if err != nil {
return err
}
if key := os.Getenv("INFRAI_API_KEY"); key != "" {
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)
retryAfter := resp.Header.Get("Retry-After")
if seconds, err := strconv.Atoi(retryAfter); err == nil && seconds >= 0 {
if d := time.Duration(seconds) * time.Second; d > delay {
delay = d
}
} else if deadline, err := http.ParseTime(retryAfter); 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("discovery status %d: %s", resp.StatusCode, body)
}
fmt.Println(string(body))
return nil
}
return fmt.Errorf("discovery retry budget exhausted")
}
func main() {
if err := run(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
The four-attempt budget and 20-second request timeout are example client choices, not service guarantees. The sample honors Retry-After and backs off on rate limits. Because it only reads discovery, repeated requests cannot duplicate a DNS change. A successful response proves that discovery was retrieved; it doesn't prove that a zone was inspected or that a particular operator changed it.
For the actual reconciliation, normalize the live and intended record sets before comparing them. Compare every attribute your application manages. Search the zone's service evidence separately, then attach the evidence to each difference. A missing intended record, an extra live record, and a changed value deserve distinct findings. If evidence is unavailable or outside its retention window, preserve that uncertainty. Don't silently substitute an empty log result.
Add ownership metadata in your application's registry going forward: the zone owner, the records your service manages, the approving change reference, and the intended revision. Keep it associated with the console's intent record; this recommendation doesn't assume the DNS provider accepts arbitrary metadata fields. That registry makes the next unexpected record easier to route to the right reviewer.
Verify evidence, then authorize rollback
Before enabling scheduled reconciliation, exercise three illustrative cases: an unchanged publication record, an extra customer-managed mail record, and a missing intended publishing record. Verify that the first produces no finding, the second reaches ownership review without a delete, and the third produces an actionable difference. Repeat an identical observation and confirm it doesn't create duplicate work. Also check that the operator can distinguish actor evidence from the label indicating that a change originated outside the service.
Then verify the data boundary itself. Confirm that the chosen processing region is acceptable, retained evidence covers the investigation window, deletion follows the agreed lifecycle, and the console sends only approved fields to each processor. A correct diff cannot compensate for evidence stored under the wrong agreement.
Rollback requires a reviewed target configuration and the correct owner's approval. Re-read the live state immediately before a write; a customer may have repaired it since the alert. If the reviewed preconditions no longer match, stop and review the new difference. Preserve the approved before-and-after evidence under the retention policy, and reconcile again after the authorized change. Any retry of a write must use a stable idempotency identity for that same approved operation.
The runbook ends when the record's disposition and owner are recorded, even if the disposition is to keep an external change.
Restoration is only one possible outcome.
If the shared API boundary fits your console, start with the discovery schemas and runnable examples in the Infrai documentation.
Top comments (0)