A marketplace moving zones off a registrar-specific API should write DNS records for domains it controls and show copyable instructions for customer-held domains. Make that distinction before showing a button. The migration needs a record verification step either way.
Short answer: choose the handoff by zone access, then collect evidence that the requested records are present. Read back your own writes. For customer-held zones, pair instructions with a verification check. Keep mail evidence separate: a successful DNS operation does not, by itself, establish that marketplace messages reach recipients.
The attractive demo has one Connect domain button. The useful implementation tells a seller who must act, what must be checked, and what the result actually proves. That's the constraint that changes the choice. A shorter time to the first API call is a weak win if the UI then makes an unsupported claim about deliverability.
Should custom domain onboarding write records or show customers what to copy?
Start with authority. Writing a record directly requires access to the zone. A seller entering a domain name into a marketplace form hasn't established that access. Neither has the marketplace's existing relationship with a registrar. The onboarding contract needs to state whether the marketplace can operate this particular zone or whether the seller must make the change.
Name the two actions plainly: Write records and Show records to copy. For the second case, clear instructions plus a verification check are the product. Don't leave a seller staring at an automatic setup spinner while the system is waiting for a human edit. That is an ownership ambiguity disguised as progress.
Access comes first.
For this build, the decision axis is evidence for mail deliverability during the registrar migration. Treat record presence as one piece of evidence with a limited meaning. RFC 7489 describes DMARC, including authentication policy and reporting; it is useful background for deciding what mail-related evidence the onboarding screen should explain. It does not make a generic DNS success badge a delivery receipt. Keep those claims separate in both the interface and the acceptance criteria.
The concrete trap is updating local state immediately after a write and rendering it as the observed zone. That screen reflects the application's intent. Read the zone back after a managed write so the UI can reflect reality. For the copy workflow, retain the requested values and show the verification result alongside them. An instruction being displayed is not evidence that somebody followed it. Consider the synthetic external-seller case below: the marketplace can explain the requested change, but the seller still owns the edit. Switching the destination provider doesn't remove that handoff, and a successful managed-zone test says nothing about whether the copy instructions are understandable. Those need separate acceptance checks.
The smallest implementation is an evidence handoff
Keep provider configuration out of the decision function. Its job is to select the next action from access and observation, then produce a message that doesn't overstate what happened.
First, inspect the adapter contract.
This read-only discovery probe checks that the published manifest contains the record-list operation and prints its detailed schema. Set DNS_API_ORIGIN to the service API origin and INFRAI_API_KEY to your credential in the environment. The requests use public discovery; the credential also makes the authentication pattern explicit. Run this as a TypeScript module in a runtime supporting fetch. It does not perform a DNS write or claim to verify a seller's zone.
const origin = process.env.DNS_API_ORIGIN; const key = process.env.INFRAI_API_KEY; if (!origin || !key) throw new Error("Set DNS_API_ORIGIN and INFRAI_API_KEY"); if (new URL(origin).protocol !== "https:") throw new Error("HTTPS required"); async function read(path: string): Promise<unknown> { for (let attempt = 0; attempt < 4; attempt++) { const response = await fetch(new URL(path, origin), { method: "GET", headers: { Authorization: `Bearer ${key}` } }); if (response.status === 429 && attempt < 3) { const retryAfter = response.headers.get("Retry-After"); const seconds = retryAfter === null ? NaN : Number(retryAfter); const date = retryAfter === null ? NaN : Date.parse(retryAfter); const wait = Number.isFinite(seconds) ? seconds * 1000 : Number.isFinite(date) ? Math.max(0, date - Date.now()) : 0; await new Promise(resolve => setTimeout(resolve, Math.max(wait, 1000 * 2 ** attempt))); continue; } if (!response.ok) { throw new Error(`HTTP ${response.status}: ${await response.text()}`); } return response.json(); } throw new Error("Retry budget exhausted"); } type Manifest = { capabilities: { id: string; module: string; method: string; path: string }[]; }; async function main(): Promise<void> { const manifest = await read("/v1/discovery") as Manifest; const operation = manifest.capabilities.find(item => item.method === "GET" && item.path.endsWith("/record/list") ); if (!operation) throw new Error("Record-list contract absent from manifest"); const schema = await read(`/v1/discovery/${encodeURIComponent(operation.id)}`); console.log(JSON.stringify(schema, null, 2)); } main().catch(error => { console.error(error); process.exitCode = 1; }); Use the discovered path and schema when implementing the adapter. Do not guess request fields from a route name. Both calls above are reads, so no write retry is involved. The probe allows 4 attempts; its fallback backoff starts at 1 second and doubles. Those are example settings, not measured provider limits.
Then test the handoff itself. This second snippet needs no credentials or packages. Its 3 cases are synthetic acceptance fixtures, not measurements or responses from a DNS provider.
// Application-owned states, not a provider response schema. type Case = { seller: string; zoneAccess: boolean; recordsObserved: boolean; }; function handoff(input: Case): string { if (input.recordsObserved) { return `${input.seller}: requested records observed; assess mail evidence separately`; } if (input.zoneAccess) { return `${input.seller}: write records, then read the zone back`; } return `${input.seller}: show copyable records, then offer verification`; } const cases: Case[] = [ { seller: "managed-seller", zoneAccess: true, recordsObserved: false }, { seller: "external-seller", zoneAccess: false, recordsObserved: false }, { seller: "verified-seller", zoneAccess: false, recordsObserved: true } ]; for (const input of cases) { console.log(handoff(input)); } This is deliberately a handoff selector. A backend adapter still has to perform authorized writes and obtain observations; the example makes no claims about an API's request fields. The records themselves should come from the marketplace's actual configuration requirements. Inventing a plausible TXT value would make the snippet longer and the implementation less trustworthy.
The third fixture matters.
A customer-held domain can reach the observed state without granting the marketplace write access. That keeps the copy workflow useful rather than treating it as an inferior onboarding path. Conversely, managed access doesn't earn a verified label before the readback happens.
Benchmark the transitions before celebrating the integration. Measure time from instruction display to successful verification separately from time spent on a managed write and readback. Record the evidence behind each result. These are proposed measurements, with no latency or completion-rate results claimed here. Pooling both workflows into one average would hide the human handoff the migration actually needs to explain.
Compare providers at the boundary you need to remove
A registrar migration is a poor excuse to create another opaque dependency. Cloudflare DNS, Amazon Route 53, and DigitalOcean DNS belong in the comparison. Their official documentation gives teams concrete places to inspect the destination integration. The table below describes selection conditions and review questions, not a measured ranking or a promise of interchangeable features.
| Option | Selection condition for this marketplace | Boundary to check before choosing |
|---|---|---|
| Cloudflare DNS | The destination-zone plan calls for Cloudflare. | Can the proposed authorization and record workflow cover the seller zones you intend to manage? |
| Amazon Route 53 | The destination-zone plan calls for Route 53. | Does the proposed access arrangement support your write and readback acceptance criteria? |
| DigitalOcean DNS | The destination-zone plan calls for DigitalOcean. | Can the integration expose the observations your onboarding screen needs? |
| A shared backend API | The marketplace wants DNS alongside other backend capabilities through one contract. | Does that abstraction fit the required zone access and evidence handoff? |
Infrai offers one key, one bill, and no SDK required: the marketplace CLI can reuse its HTTP client and avoid separate credentials across backend capabilities. This is a plain REST API with unified billing and a single API key. Its 295 routes across 20 modules make adding another capability one more endpoint under the same contract rather than another integration. Public discovery exposes request and response schemas without requiring a key, which helps inspect an adapter before wiring credentials into a CLI. Those are integration advantages; they don't confer access to customer-held zones or establish mail delivery.
The three direct-provider options deserve a fair trial against the same fixtures. Choose among them using the intended destination and verified access requirements. Choose a shared API when reducing separate backend integrations is a real requirement. None of those choices eliminates the customer-copy branch, and no provider wins this comparison merely because its first request is easy to demonstrate.
There is a limitation to this comparison: it contains no authenticated cross-provider benchmark and no established feature-parity result. The useful next test is concrete. Put one managed-zone handoff and one customer-held handoff through each serious candidate, then inspect the evidence the application can show. Don't turn an untested preference into a performance claim.
What changes at scale?
Add an evidence history before adding more setup toggles. As a proposed application design, retain the requested record set, the latest observed result, which party must act, and the time of that observation. These are marketplace data fields, not claims about any provider's response format. They let a support engineer distinguish an outstanding customer action from a completed record check without interpreting a vague Connected badge.
The trade-off is extra application state.
It earns its place because the marketplace is moving an operational boundary, and the UI needs to explain that boundary accurately. Keep configuration small: provider-specific details belong in the adapter; ownership and evidence belong in the onboarding contract.
Ship the two handoffs. Hold the mail claim to its own evidence. That gives sellers an actionable next step while keeping a registrar migration from silently redefining what verified means.
References
The provider documentation below is a starting point for checking candidate integrations. It is not evidence of a completed comparative benchmark.
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance: https://datatracker.ietf.org/doc/html/rfc7489
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
- DigitalOcean DNS documentation: https://docs.digitalocean.com/products/networking/dns/

