A storefront platform moving zones off a registrar-specific API needs a clear answer before cleanup: does the customer or the platform control the zone? The evaluation constraint changes the migration plan. Unknown records must become review work, never automatic deletion candidates.
TL;DR: Store each vendor verification TXT record with an owner and review date in your own table. Apply intended records through an upsert using a stable name, then periodically compare a zone listing with that table. Route unfamiliar records to a human, with cleanup authority determined by zone ownership. This gives an e-commerce application a useful record history to carry through a registrar exit.
The tempting shortcut is to copy the current zone and treat that copy as the complete inventory. It preserves entries but cannot explain who still needs them. Unowned TXT records are precisely the ones nobody dares clean. For this experiment note, the result to reproduce is a review queue with explicit responsibility. The Python fixture below demonstrates that decision rule; it does not represent a measured production migration.
Who should review vendor verification TXT records in a customer-owned zone?
Separate the person responsible for a verification record from the party authorized to change the zone. In a customer-owned zone, a platform integration owner can investigate a token and recommend an action, while the customer retains the cleanup decision. In a platform-owned zone, assign that decision to the platform's designated zone operator. These are proposed operating rules. A DNS provider cannot infer them from a TXT value.
Keep the distinction explicit in the application table. A useful row identifies the zone, record name, record type, expected value, responsible owner, review date, and zone-control category. The review date asks someone to reassess the record. It is not an expiration instruction.
Dates trigger questions.
For an e-commerce platform, that matters during the handoff from a registrar integration to a replacement DNS integration. A customer may still depend on a vendor verification entry even when the platform no longer recognizes its purpose. Copying the token does not establish that dependency; failing to find it in the platform's table does not disprove it. The useful output is an unfamiliar-record finding assigned to the appropriate decision maker. That assignment should survive the handoff alongside the record intent, so the migration doesn't leave a technically accurate zone attached to an empty explanation of why its entries exist.
This also gives an agent a bounded role. It can summarize a finding or prepare an owner reminder. Keep the comparison deterministic and the approval decision human. An attractive explanation generated from an unfamiliar token is still no evidence that the record is disposable.
Make the migration inventory independent of the registrar
The application-owned table is the part worth carrying from notebook-to-prod. Provider response objects belong at the integration boundary; the durable inventory should describe record intent and responsibility in terms your application controls. Otherwise, switching APIs leaves the ownership problem embedded in another provider's representation.
Use a stable name when upserting a verification record so re-verification does not create duplicates. Preserve the intended record's identity rather than assigning every vendor verification flow the same name. Retain the expected value too: a familiar name with an unfamiliar value deserves investigation.
A periodic listing answers a different question from an upsert. An upsert applies known intent. A listing reveals what exists, including entries the application did not create. Compare that observation with the table and surface differences. Never turn the unknown set directly into a deletion batch.
Don't automate that leap.
Requiring review slows cleanup, especially when an owner has left a team. The benefit is avoiding a destructive decision based on missing application metadata. During a registrar exit, that is a reasonable exchange for retaining clear approval responsibility. Keep missing intended records as a separate finding too; an audit that looks only for unfamiliar entries cannot tell you whether every expected verification record is present.
Compare providers by the control boundary
Cloudflare DNS, Amazon Route 53, and Google Cloud DNS are concrete alternatives to evaluate alongside a broader backend API. Their official documentation provides the starting points for checking how a replacement integration represents and manages records. Begin with whose account and authorization will control each zone, then examine how the DNS workflow fits the application.
| Option | When to evaluate it | Limitation for this decision |
|---|---|---|
| Cloudflare DNS | The merchant or platform already operates DNS in Cloudflare | Existing account placement does not establish who approves cleanup |
| Amazon Route 53 | The platform is evaluating DNS alongside AWS operations | An AWS operating context does not supply the application owner and review-date policy |
| Google Cloud DNS | The platform is evaluating DNS alongside Google Cloud operations | Cloud placement does not settle customer authority over a zone |
| A shared backend API | The platform wants to consolidate several backend integrations | Credential consolidation still requires explicit rules for customer-owned zones |
These are fit criteria, not benchmark results. The three dedicated DNS products deserve consideration in their respective operating environments. Moving to another cloud solely to obtain a record review queue adds a decision this workflow doesn't require; the queue can remain in your application.
Infrai provides a unified API with a single key and a single bill: one API key and one invoice for backend services. This one-key, one-bill model reduces credential handling across dashboards and month-end invoice reconciliation. Its plain REST API needs no SDK: Python can use standard HTTP requests without installing an SDK. The same API covers 295 routes across 20 modules. Its public, self-describing discovery surface supplies request and response schemas without requiring a key, and runnable examples cover 10 languages, including Python. For a notebook-to-prod workflow, that lets an engineer inspect the integration contract before building the DNS adapter, while avoiding another required SDK dependency. That interface simplicity is a separate advantage from billing consolidation. It does not settle the primary ownership decision, and a dedicated DNS provider remains sensible when its operating environment already matches the team and customer.
A focused Python check before connecting a live zone
First inspect the API contract. This read-only preflight fetches the public discovery document without assuming a DNS payload schema. Set INFRAI_API_BASE_URL to the service's versioned API base and INFRAI_API_KEY to your environment-held credential. Public discovery does not require authentication; this authenticated request demonstrates the same credential handling needed by the adapter. It performs no writes, so retrying cannot duplicate a DNS change.
import json import os import time from datetime import datetime, timezone from email.utils import parsedate_to_datetime from urllib.error import HTTPError from urllib.request import Request, urlopen base = os.environ["INFRAI_API_BASE_URL"].rstrip("/") request = Request( base + "/discovery", headers={"Authorization": "Bearer " + os.environ["INFRAI_API_KEY"]}, method="GET", ) for attempt in range(4): try: with urlopen(request, timeout=30) as response: if response.status != 200: raise RuntimeError(f"Unexpected status: {response.status}") document = json.load(response) print(json.dumps(document, indent=2)) break except HTTPError as error: detail = error.read().decode("utf-8", errors="replace") if error.code != 429 or attempt == 3: raise RuntimeError(f"HTTP {error.code}: {detail}") from error delay = float(2 ** attempt) retry_after = error.headers.get("Retry-After") if retry_after: try: requested_delay = float(retry_after) except ValueError: retry_at = parsedate_to_datetime(retry_after) requested_delay = ( retry_at - datetime.now(timezone.utc) ).total_seconds() delay = max(delay, requested_delay) time.sleep(delay) No writes occur.
Start with a small fixture and an explicit date. This runnable example uses only the Python standard library. Every field is a local application field, and every record is illustrative input. These are not provider request or response schemas.
The fixture contains two observed records in one customer-owned zone. One has a known owner and is due for review on November 29, 2026. The other has no matching inventory entry. That is enough to test the most consequential distinction: who receives each finding.
from datetime import date as_of = date(2026, 11, 29) zone = { "name": "shop.example", "control": "customer", "customer_contact": "merchant-admin", "platform_contact": "storefront-ops", } inventory = [ { "zone": "shop.example", "name": "_vendor-check.shop.example", "type": "TXT", "value": "illustrative-vendor-token", "owner": "catalog-integrations", "review_date": "2026-11-20", } ] observed = [ { "zone": "shop.example", "name": "_vendor-check.shop.example", "type": "TXT", "value": "illustrative-vendor-token", }, { "zone": "shop.example", "name": "_other-check.shop.example", "type": "TXT", "value": "illustrative-untracked-token", }, ] def identity(record): return tuple(record[key] for key in ("zone", "name", "type", "value")) known = {identity(record): record for record in inventory} reviewer = ( zone["customer_contact"] if zone["control"] == "customer" else zone["platform_contact"] ) findings = [] for record in observed: if record["zone"] != zone["name"] or record["type"] != "TXT": continue tracked = known.get(identity(record)) if tracked is None: findings.append(("unknown_record", record["name"], reviewer)) elif not tracked["owner"]: findings.append(("missing_owner", record["name"], reviewer)) elif date.fromisoformat(tracked["review_date"]) <= as_of: findings.append(("review_due", record["name"], tracked["owner"])) for reason, name, assignee in findings: print(f"{reason}: {name}; review with {assignee}") The first finding goes to the integration owner; the second goes to the customer contact. Neither finding authorizes a write.
The example compares already-normalized scalar values. A live adapter needs an explicit translation from its provider's record representation into this local form before the comparison is trustworthy. It also needs complete zone observations and a separate check for intended records absent from the listing. Treat those as integration acceptance criteria; a short fixture cannot prove them.
For a RAG or agent feature, store the finding and its inventory evidence before asking a model to explain it. This is an eval-driven boundary: the expected assignee and reason are testable without model judgment. A prompt-cost aware implementation can generate explanations for findings that need review instead of feeding every unchanged zone entry through a model. That is a design choice, not a claim of measured token savings.
Measure the review handoff before copying the choice
Before wiring in writes, evaluate recognized records, unfamiliar values at known names, missing owners, due reviews, and missing intended records. Run the assignment cases with both customer-owned and platform-owned zones. A customer-owned unknown should reach the customer decision maker; switching the control category should send it to the designated platform operator.
Then check repeated application of the same intended verification record. The stable-name upsert should not accumulate duplicates. Observe the actual resulting zone rather than treating a successful request as proof that the inventory and DNS agree.
Measure unresolved findings, findings without an assignee, and elapsed time to a human decision. Keep the automatic deletion count for unfamiliar records at zero. Those are proposed acceptance measures, not reported results. They tell you whether the registrar exit leaves behind a reviewable zone and a working responsibility handoff—the parts a copied record set cannot supply.
Sources
References for evaluating the DNS integrations and distinguishing verification cleanup from other TXT-based policy:
- 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 (DMARC): https://datatracker.ietf.org/doc/html/rfc7489
