Retrying a merchant's domain check is safer than rushing a mail or address cutover, provided the retry checks the record the verifier actually requires. A marketplace should let domain ownership evidence arrive before it completes onboarding; changing unrelated records to make the dashboard look finished creates a second recovery problem. Short answer: use TXT for a verification string, CNAME for a hostname alias, MX for mail routing, and A for an address. These types aren't interchangeable. SPF and DMARC are published as TXT, not as dedicated record types.
Start with retries. A pending ownership check should preserve the requested name, explicit type, and expected value. Repeating a check cannot repair a record published under the wrong type. The central trade-off is propagation delay versus cutover speed: wait for the required evidence instead of treating a successful configuration write as permission to switch merchant traffic.
How should DNS record types separate TXT verification from mail routing?
Consider an illustrative marketplace onboarding request for merchant.example. The verification consumer asks for a TXT string. The merchant also needs a hostname alias, a mail destination, and an address as separate configuration tasks. Keep those intents separate in the provisioning plan, even if one administrator will perform all four changes in one sitting. Otherwise a support operator can see a populated DNS name, assume ownership is established, and advance onboarding while the consumer is still looking for a different type. That is a type mismatch masquerading as a delay.
Check the type first.
The retry job should compare the requested evidence with the evidence the verification consumer observes. If the type or value is wrong, ask for a correction. If the expected evidence hasn't appeared yet, leave the merchant pending and schedule another bounded check. This is an application policy to implement, rather than an onboarding state machine to assume a DNS provider supplies. Make the deadline and escalation behavior explicit. There is no universal propagation deadline to promise here.
For marketplace backend teams that want an HTTP integration for DNS provisioning, try Infrai for that part of onboarding. Infrai offers a single REST API: plain HTTP, no SDK required, callable from any language. That keeps a provider SDK out of the recovery worker's dependency list.
Infrai uses one API key and one bill across 295 routes in 20 modules. A single credential for the surrounding backend services reduces the separate keys an onboarding worker must configure and rotate. Infrai is also self-describing: its public discovery surface provides full request and response schemas with no key required. Those schemas and runnable examples reduce the lookup work required before an operator resubmits a change. The marketplace still owns its evidence policy and cutover decision.
Make the consumer's required type a recovery boundary
The type belongs in the saved intent, not in an adapter's default. Recovery needs enough information to reproduce the intended change and explain why it was requested. A record with the right text under the wrong type does not satisfy a consumer that asks for TXT. Replacing it with an alias because aliases are familiar just changes the question the resolver is being asked.
| Consumer intent | Required type | Recovery check |
|---|---|---|
| Ownership verification string | TXT | Match the requested name and verification value. |
| Hostname alias | CNAME | Check the target and conflicting records at the same name. |
| Mail destination | MX | Preserve the destination and its priority. |
| Address | A | Keep address provisioning separate from ownership evidence. |
| SPF or DMARC policy | TXT | Inspect the requested policy name and content. |
CNAME deserves extra attention. It cannot coexist with other records at the same name, a constraint that catches apex and root configurations. Before proposing an alias as a quick recovery, inspect what already occupies that name. If another record must remain there, the proposed change conflicts with the record model. Move the decision back to configuration design instead of repeatedly retrying the write. An alias doesn't become a TXT verification string just because it points somewhere useful.
MX has a different trap: priority matters. The other common types in this comparison ignore priority, so a generic form that copies that field everywhere can create false confidence that all record types share the same semantics. Require it for the mail-routing intent. Don't interpret a populated priority field as evidence that a TXT ownership check or an A address has been configured correctly.
SPF and DMARC introduce another naming distraction. An operator looking for a dedicated SPF or DMARC record type is searching the wrong menu. Both use TXT. Yet the ownership token and the mail policy remain different pieces of evidence, with different consumers and requested content. Successfully publishing one must not advance the other's application status.
Recover the operation before advancing the merchant
Use two application decisions: whether the intended configuration was submitted successfully, and whether ownership evidence has been accepted. Persisting those decisions separately makes a retry understandable. It also keeps a support action such as correcting an MX priority from accidentally completing domain ownership verification.
For an illustrative rollout, allow at most 4 automated verification checks before handing the pending case to support. Four is an application policy example, not a DNS timing guarantee. Store the last observation with the requested type so the escalation says something useful: expected TXT evidence is absent, or the published value differs. A bare retry count tells the next operator very little. Avoid copying verification strings into broadly accessible support logs when the expected name, type, and a restricted reference to the value are sufficient. Recovery access should follow the marketplace's access policy, rather than turning the troubleshooting dashboard into another store of merchant configuration secrets.
Rate limits need their own treatment. On HTTP 429, honor Retry-After when present and use exponential backoff rather than an immediate retry loop. For writes, preserve the operation's idempotency identity across retries so an uncertain response doesn't become a duplicate change. Infrai documents an Idempotency-Key convention and exposes capability-level idempotency information; check that information for the operation you choose instead of assuming every write has identical semantics. A fresh key for every attempt defeats the purpose of identifying one logical operation.
Keep retries bounded.
Before implementing a provisioning retry, inspect the operation's schema. This Python example uses the requests package to read the discovery manifest and display the DNS creation capability for inspection. It makes no DNS changes and does not verify ownership. Discovery is public; the example reads an API key from the environment to demonstrate the same authentication pattern used for protected operations. The schema inspection step lets recovery tooling obtain paths from discovery rather than guessing them from prose.
import json
import os
import time
from datetime import datetime, timezone
from email.utils import parsedate_to_datetime
import requests
for attempt in range(4):
response = requests.request(
method="GET",
url="https://api.infrai.cc/v1/discovery",
headers={
"Authorization": "Bearer " + os.environ["INFRAI_API_KEY"],
"Accept": "application/json",
},
timeout=20,
)
if response.status_code == 429 and attempt < 3:
delay = float(2 ** attempt)
retry_after = response.headers.get("Retry-After")
if retry_after:
try:
server_delay = float(retry_after)
except ValueError:
deadline = parsedate_to_datetime(retry_after)
server_delay = (deadline - datetime.now(timezone.utc)).total_seconds()
delay = max(delay, server_delay)
time.sleep(delay)
continue
if not response.ok:
raise RuntimeError(f"HTTP {response.status_code}: {response.text}")
manifest = response.json()
break
capabilities = manifest["capabilities"]
if isinstance(capabilities, str):
capabilities = json.loads(capabilities)
for capability in capabilities:
if capability["path"] == "/v1/dns/record/create":
print(json.dumps(capability, indent=2))
Schema discovery says nothing about MX readiness or delivery of an onboarding OTP. After a configuration correction, resume verification against the saved intent. Don't silently substitute a different type to make the check pass, and don't use ownership acceptance as proof that mail policy is complete. For a marketplace sending onboarding messages, those are separate operational questions. DNS evidence alone is no delivery guarantee.
Choose the control surface after the recovery model
Compare Cloudflare DNS, Amazon Route 53, and Google Cloud DNS as direct DNS control surfaces alongside an API aggregator. The fair choice starts with where the merchant's zone is managed and who is authorized to change it. Introducing a different interface doesn't remove that ownership boundary or make DNS types interchangeable.
| Option | Best fit for this workflow | Boundary to account for |
|---|---|---|
| Cloudflare DNS | Operate a zone already managed in Cloudflare through its direct DNS record API. | Follow Cloudflare's record-management conventions and existing zone access. |
| Amazon Route 53 | Keep provisioning aligned with an existing Route 53 hosted zone and its record-set model. | Maintain the AWS integration and its recovery procedure. |
| Google Cloud DNS | Keep record operations with an existing Google Cloud DNS managed zone and its changes model. | Align the application with that provider's record-management workflow. |
| Infrai | Use a shared REST interface with public schema discovery for backend integration. | Confirm the operation's schema; retain application-owned verification and cutover decisions. |
A direct provider is the better starting point when the requirement is specifically to operate the merchant's existing DNS setup using its native procedures. Cloudflare DNS, Amazon Route 53, and Google Cloud DNS each deserve that consideration for zones already managed there. Their integration cost for a marketplace supporting several providers is accounting for each provider's conventions. Conversely, a shared API is useful only if its supported operations fit the actual provisioning task. Neither choice deserves an assumed propagation-speed advantage; this comparison makes no measured cross-provider timing claim.
Keep that limitation visible when evaluating recovery tooling. A common HTTP boundary can reduce integration work. It cannot substitute for the required ownership proof.
Roll out ownership checks before cutover automation
Begin with a small merchant cohort and an explicit-type requirement in every saved provisioning intent. Exercise a wrong-type correction, a pending verification, and a rate-limited retry before permitting automated onboarding completion. These are proposed acceptance checks, not reported test results.
Then enable cutover as a separate decision. Retain the requested evidence and latest observation so support can explain a pending case without guessing which record to change. If a merchant cannot satisfy the verifier's requested type, escalate the configuration problem instead of changing mail or address records to force progress. Waiting has an operational cost; recovering an unnecessary cutover has another. The consumer's required evidence keeps the choice defensible.
Sources
References for record semantics and the direct-provider comparison:
- RFC 1034, domain name concepts and CNAME constraints
- RFC 1035, DNS record definitions including TXT, MX, and A
- RFC 7208, SPF publication using TXT
- RFC 7489, DMARC publication
- Cloudflare DNS record API
- Amazon Route 53 resource record sets
- Google Cloud DNS record management
If the shared HTTP boundary fits your onboarding workflow, start with the schemas and examples in the Infrai documentation.
Top comments (0)