Consider this alert during developer onboarding: the dated DNS configuration report contains zero zones. The scheduler says the job completed, and an archive artifact exists. The on-call engineer still cannot tell whether the customer's domain was inspected. This is an illustrative failure scenario, but the operational distinction matters: creating a report and collecting evidence are separate outcomes.
TL;DR: Read every in-scope zone and its records on a schedule, include zone identifiers, render a dated report, and archive the resulting series. For customer-owned zones, establish who can supply that inventory before treating onboarding evidence as complete. For platform-owned zones, reconcile collection against the platform's expected inventory. Alert on an unexpected zero-zone report before an auditor or an onboarding reviewer discovers it.
Keep onboarding blocked.
The report supports a decision about domain ownership; it does not, by itself, prove that the applicant controls the domain. A dated configuration inventory records what was collected. The onboarding process must separately establish who was authorized to supply that evidence and which ownership check the applicant satisfied. Mixing those decisions produces an attractive document with an ambiguous meaning.
What should alert before an unattended DNS configuration report reaches the archive?
Start with the expected scope. A developer platform may control its own service zones while its customers control the domains they bring to onboarding. Those are different collection responsibilities. A platform inventory cannot establish that an absent customer zone has no records, and a customer's export cannot establish that every platform zone was inspected.
The earlier signal should be a mismatch between expected scope and observed coverage. Define the expected zone set from the onboarding records, then attach each collection result to its zone identifier. Record a deliberate empty scope separately from a failed or incomplete collection. If the job expected a customer domain and observed zero zones, report that discrepancy before rendering a document that could look complete.
Zero needs context.
For an illustrative onboarding run, suppose 1 customer-owned zone is expected. An observed count of 0 should prevent the evidence step from passing. A platform with no onboarded domains may legitimately expect 0. These are proposed acceptance rules, not observations about a production deployment. The useful number is the difference between what this run was meant to inspect and what it actually inspected.
A nonzero report can still be incomplete. One returned zone does not prove that the collector read all expected zones, or that it collected their records. Preserve the expected identifiers, the observed identifiers, and the collection outcome together. Otherwise, the first missing zone disappears inside a reassuring total.
Make the dated series the unit of evidence
For a Node.js onboarding service, separate the scheduled trigger from the evidence decision. The trigger starts a collection run. The collector reads the zones and their records. The renderer produces a dated report, and the archive keeps that report available for later review. The onboarding service consumes the accepted run's identity and scope, rather than interpreting a scheduler success as proof that the domain check passed. This is an application design, not a claim about any particular provider's response fields.
Current-state reads are useful; the lasting value comes from retaining the dated series. A live configuration page changes as the system changes. A rendered report gives an auditor a document to review, while the zone identifiers let the application join that evidence to its own onboarding records later. Store the collection time explicitly. A filename alone is a weak place to keep the meaning of the date.
Keep each run's scope visible in the report itself. A reviewer should be able to distinguish customer-supplied evidence from a platform collection, identify the zones included, and see whether collection completed. Avoid presenting collection time as the time the customer originally gained control of the domain. Those are different events.
For retries, choose a stable logical run identity before collection starts and reuse it when delivery repeats. Publish one accepted result for that identity. If a later scheduled run collects a different state, give it a separate dated entry instead of overwriting yesterday's report. This idempotency rule prevents a retry from looking like an additional independent observation.
The trade-off is explicit: a collector that refuses incomplete evidence can delay onboarding. Allowing an incomplete report to pass moves that uncertainty to the reviewer and makes it harder to reconstruct later. Preserve the failed attempt for investigation, but keep it out of the accepted evidence series.
Choose collection around the zone owner
Provider selection starts with the authority to read the relevant zones. Moving a customer-owned zone just to make a reporting job convenient adds an onboarding dependency. Keeping collection close to the existing owner can reduce that dependency, but the platform must then reconcile evidence supplied through different administrative boundaries. Neither choice removes the need to define expected scope.
The following comparison is a decision checklist, not a measured feature ranking. The provider documentation in References is the starting point for validating the access and collection contract for a particular deployment.
| Option | When to evaluate it | Boundary to resolve before acceptance |
|---|---|---|
| Cloudflare DNS | The domain owner already manages the zone there | Determine which customer or platform identity can provide the complete in-scope inventory. |
| Amazon Route 53 | The expected zones belong to an AWS administration boundary | Reconcile the zones available to the collector with those named in onboarding records. |
| Google Cloud DNS | The zone owner uses Google Cloud administration | Establish which administrative scope supplies the evidence and who approves that scope. |
| A shared backend API | The platform wants collection and adjacent backend services under one operational interface | Confirm that its accessible inventory covers the actual customer-owned and platform-owned zones. |
Infrai offers a single key and a single bill across backend services through one REST API: one key and one bill instead of separate credentials and invoices for each service. A single key covers 295 routes across 20 modules, so the reporting workflow and adjacent backend services don't require a separate pile of credentials and invoices. Its public, self-describing discovery surface adds a different advantage for this workflow: request and response schemas are available without a key before implementing the collector. That convenience does not establish access to a customer's zones or replace an ownership check.
The three direct-provider options deserve equal consideration when the zone owner already operates there. The relevant limitation is the collection boundary: adopting a different interface does not make an inventory authoritative for a domain outside its scope. Choose the interface after establishing that boundary.
Instrument acceptance, then write the runbook
Add application telemetry for expected zones, observed zones, incomplete record collection, and the last accepted report time. These are proposed application signals, not provider API parameters. Keep the run identity in diagnostic events so an operator can connect a trigger, its collection attempts, and the final archive artifact. A successful render should be observable without automatically marking evidence collection successful.
Start with a collection probe. The Go example below can run alongside the Node.js service; set DNS_API_BASE to the provider's versioned API base and INFRAI_API_KEY to the credential. It performs the verified zone-list read, checks HTTP status, and emits the raw response. It doesn't invent a zone-array field or pretend that a successful HTTP response proves nonempty coverage. Decode the documented response schema, collect each zone's records, and apply the acceptance checks before rendering or archiving an accepted report.
package main import ( "fmt" "io" "net/http" "os" "strconv" "strings" "time" ) func run() error { base := strings.TrimRight(os.Getenv("DNS_API_BASE"), "/") key := os.Getenv("INFRAI_API_KEY") if !strings.HasPrefix(base, "https://") || key == "" { return fmt.Errorf("set an HTTPS DNS_API_BASE and INFRAI_API_KEY") } client := &http.Client{Timeout: 30 * time.Second} for attempt := 0; attempt < 3; attempt++ { req, err := http.NewRequest(http.MethodGet, base+"/dns/domain/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 < 2 { delay := time.Second * time.Duration(1<<attempt) retry := resp.Header.Get("Retry-After") if seconds, err := strconv.Atoi(retry); err == nil && seconds >= 0 { if requested := time.Duration(seconds) * time.Second; requested > delay { delay = requested } } else if until, err := http.ParseTime(retry); err == nil { if remaining := time.Until(until); remaining > delay { delay = remaining } } time.Sleep(delay) continue } if resp.StatusCode < 200 || resp.StatusCode >= 300 { return fmt.Errorf("zone inventory HTTP %d: %s", resp.StatusCode, body) } _, err = os.Stdout.Write(body) return err } return fmt.Errorf("zone inventory retry budget exhausted") } func main() { if err := run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } The probe permits 3 attempts and uses a 30-second HTTP timeout per request. Those are example client choices, not service guarantees. A scheduled worker needs its own overall deadline; don't let repeated throttling consume the entire reporting window. Keep a cron timeout at or below 900 seconds, and use the cron trigger plus queue worker pattern for longer work. This read can be repeated without creating another domain, while report publication still needs the stable run identity described above.
The first runbook action is to compare expected scope with observed scope. Next, determine whether collection finished for every expected zone. Only then inspect rendering and archival outcomes.
Regeneration won't fix missing scope.
This order follows the evidence: regenerating a document cannot repair an inventory that never included the customer's domain.
For an unexpected zero-zone report, hold acceptance and investigate the collection boundary. For an overdue report, investigate the scheduled run and its completion. For a repeated delivery, reconcile the logical run identity before publishing again. These conditions need different actions, even when they all appear on the same onboarding screen.
Do not silently reuse the last accepted report to satisfy a new collection run. Older evidence can remain useful, provided its date and scope remain visible.
Keep the original date.
Calling it the result of today's attempt would erase the very distinction the dated archive is meant to preserve.
Set thresholds that preserve the meaning of the page
Alert on zero zones when the expected inventory is nonempty. Also detect missing expected identifiers and overdue accepted reports; zero alone cannot catch partial collection. Set the freshness threshold from the intended schedule and the onboarding decision deadline. No universal delay follows from the reporting design.
The false-positive cost is operational. Paging for every empty report would include legitimate runs with no expected zones. That spends on-call attention without identifying missing evidence, and it can delay onboarding for a customer whose scope was correctly empty. Record that empty scope explicitly so the operator can distinguish it from an incomplete collection.
Don't solve the noise by accepting every nonzero result. That threshold misses the case where only part of the expected inventory was collected. Keep acceptance tied to identifiers and completed record reads; page when the evidence required for the onboarding decision is missing or overdue. The document can wait. The ownership decision must wait with it.
References
The provider references below support checking collection boundaries against the zone owner's existing service. RFC 7489 supplies context for DMARC records that may appear in an inventory; it is not a specification for this archive workflow or a substitute for domain ownership verification.
Further reading
- Cloudflare DNS documentation: https://developers.cloudflare.com/dns/
- Amazon Route 53 Developer Guide: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Welcome.html
- Google Cloud DNS documentation: https://cloud.google.com/dns/docs
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance: https://datatracker.ietf.org/doc/html/rfc7489
