Show customers the proposed DNS records during custom domain onboarding, and let them copy the change or authorize a write. Keep the old destination available until the replacement passes an explicit readiness gate. For a developer tool moving a hostname, the deciding constraint is propagation delay versus cutover speed.
TL;DR: Both editing modes should converge on the same checks. Use 3 gates: authorized change, observed readiness, and rollback release. These are proposed application states, not DNS protocol states or timing guarantees.
Should domain onboarding show records to copy or write them?
Offer copyable records as the baseline and authorized writing where the customer can grant suitable access. This decision record concerns moving console.example.com between an old destination and a replacement. The name is illustrative. The customer needs to inspect the intended change, choose who makes it, and retain a usable return path. An integration can reduce the manual edit and handoff; it cannot make a successful write sufficient evidence of migration readiness.
Preserve the return path.
The central invariant is that the application must not retire the old destination merely because someone clicked a copy button or an integration reported success. Save the prior configuration, including whether the intended record previously existed. Obtain approval for the proposed change and its scope. If the live configuration differs from the approved snapshot, require another review before writing. This policy trades an occasional interruption for protection against overwriting another administrator's work. For example, an administrator could update the same hostname after approval but before execution; silently restoring the earlier snapshot later would undo their intervening change. Apply the same conflict review to rollback.
Keep unrelated records intact.
RFC 7489 specifies DMARC policy publication and discovery using DNS TXT records; it does not define approval to migrate an application hostname. Section 6.6.3 treats multiple remaining DMARC policy records as a reason to terminate policy discovery. That is a concrete pitfall for an editor that indiscriminately appends or replaces records. Scope this change to service routing, and preserve unrelated mail authentication policy.
The failure boundary is explicit: the onboarding service controls its own write request and readiness policy, but request success doesn't establish what every customer will observe.
Decision: separate edit convenience from readiness
Propagation delay is a shared constraint. Neither editing mode earns a weaker readiness gate.
| Decision point | Customer copies records | Service writes with authorization |
|---|---|---|
| Approval | Customer reviews and applies the proposed change | Customer reviews scope and grants permission before execution |
| Cutover speed | Includes manual edit and handoff time | Can remove that handoff when suitable access is available |
| Evidence | Check published results independently of the completion claim | Check published results independently of write success |
| Rollback | Show the prior configuration and restoration instructions | Restore only within the permission and scope approved |
| Team burden | Explain record fields and diagnose mismatches | Also maintain credentials, authorization, and reconciliation |
Make the copyable plan visible even when authorized writing is offered. Hiding it behind a permission prompt saves screen space at the expense of reviewability. The customer needs to understand which hostname will change and what restoration would do.
The trade-off is operational ownership. Authorized writing is not suitable when the customer cannot grant narrowly scoped access or the team cannot maintain credential handling and reconciliation; use the copyable path instead. Its limitation is the manual edit and handoff, which the onboarding team must account for in cutover planning.
Use precise status language: awaiting edit, checking readiness, ready for cutover, and retaining rollback. Don't collapse these into one success badge.
The critical path has 3 gates
Gate 1 captures approval and prior state. Gate 2 checks DNS and application readiness before permitting migration. Gate 3 releases the old destination after the agreed rollback window and checks. Choose that window as an operational policy; no duration here is asserted as a DNS guarantee.
This Python example implements the decision core. Trusted backend adapters supply the evidence; the browser must not be allowed to declare these checks true. Both editing modes use the same function. A write adapter must separately compare current configuration with the approved snapshot before applying a change.
from dataclasses import dataclass from enum import Enum class Stage(str, Enum): AWAITING_APPROVAL = "awaiting_approval" AWAITING_EDIT = "awaiting_edit" CHECKING_READINESS = "checking_readiness" READY_FOR_CUTOVER = "ready_for_cutover" RETAINING_ROLLBACK = "retaining_rollback" REVIEW_RELEASE = "review_release" @dataclass(frozen=True) class Evidence: approved: bool prior_state_saved: bool edit_acknowledged: bool expected_dns_observed: bool replacement_ready: bool cutover_recorded: bool rollback_window_elapsed: bool post_cutover_checks_passed: bool def next_stage(evidence: Evidence) -> Stage: if not evidence.approved or not evidence.prior_state_saved: return Stage.AWAITING_APPROVAL if not evidence.edit_acknowledged: return Stage.AWAITING_EDIT if not evidence.cutover_recorded: if (evidence.expected_dns_observed and evidence.replacement_ready): return Stage.READY_FOR_CUTOVER return Stage.CHECKING_READINESS if (evidence.expected_dns_observed and evidence.replacement_ready and evidence.rollback_window_elapsed and evidence.post_cutover_checks_passed): return Stage.REVIEW_RELEASE return Stage.RETAINING_ROLLBACK The function performs no writes. REVIEW_RELEASE requests review rather than deleting the old destination.
For an illustrative acceptance case, set approval, saved prior state, and edit acknowledgment to true while leaving DNS observation false. The result must remain CHECKING_READINESS, even for authorized writing. With DNS observation and replacement readiness true, it can report READY_FOR_CUTOVER. After a recorded cutover, an elapsed window without passing checks must still retain rollback. These are policy examples, not measured migration results.
Observe the boundary before retiring anything
Define observations before the change. Require the expected DNS answer from the team's chosen observation points and a successful check of the replacement using the customer hostname. Record which points were checked and when. An observation from one place should be labeled that way; calling it global readiness would claim more evidence than the check supplies. Include hostname acceptance, certificate readiness where HTTPS is used, and a representative application request in the release policy. DNS alone leaves an application-shaped hole.
For a developer tool sending login links or OTP messages, review the link destination as part of that request flow. Message acceptance doesn't prove the destination is usable. Keep test messages controlled and keep OTP values and message contents out of migration logs. These are proposed acceptance and data-minimization rules.
Rollback needs observation too.
Restoring prior DNS configuration is a requested reversal. Keep the previous destination available while checking the result; don't label restoration an instant recovery guarantee. If a write times out, read current configuration before repeating it. If the approved change is already present, continue verification. If another administrator changed it, stop automated mutation and present the difference.
Log operation identifiers, approved scope, observation timestamps, and state transitions. Keep credentials out. Those records should let the next engineer distinguish a pending edit from a pending readiness check without inspecting customer messages or secret values.
This adds work. Observations, review states, and restoration plans need maintenance alongside the integration. Keeping destinations available together also consumes resources. Choose the overlap from the service's acceptance policy and operational budget; a faster edit doesn't remove the need to verify readiness.
Rejected option: permission first, immediate retirement
Reject a flow that requires write access, treats the write response as cutover completion, and immediately removes the old destination. It combines separate decisions into one event and cannot explain why completed authorization still leaves readiness unresolved.
A mandatory write integration can suit an environment where every participating zone follows a shared authorization policy. It still needs independent readiness checks and a release gate.
For customer-managed domains, retain the copyable path. Use authorized writing to reduce edit friction where access and operational ownership are clear. Choose cutover time from observed readiness, then retire the return path through a separate, reviewable decision.
References
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance (DMARC), especially Sections 6.1 and 6.6.3 on DNS publication and policy discovery: https://datatracker.ietf.org/doc/html/rfc7489
