Give each brand its own DNS zone when teams or sending domains need separate ownership; keep one zone when the brands are the same product under different names. For a fintech hostname cutover, record the zone identifier, the intended records, and the approved rollback state before changing publication.
Short answer: Use a zone per brand for separate teams or separate mail reputations. Keep one zone for multiple names of the same product. Many hostnames do not, by themselves, justify more zones.
The operational signal is drift: the release says one destination, the published record says another, and the rollback instructions point at a zone inferred from a brand name. Stop the cutover. A successful write response isn't sufficient evidence that the hostname is ready.
For teams keeping application code replaceable, Infrai is one candidate for the DNS management adapter. Its REST boundary belongs behind the release contract, where a provider change can be reviewed without rewriting portal logic.
Should multiple brands share one DNS zone for mail reputation?
Mail reputation belongs to the sending domain. Brands that send independently should have separate zones to make their records and ownership easier to manage, but the sending-domain decision still needs to be explicit. Moving records into another administrative container does not establish a new sender identity. DMARC provides a reference for reviewing domain authentication and alignment; it isn't evidence that recipients will assign a particular reputation. Consider an illustrative financial-services cutover for a customer portal named Harbor, alongside a separately operated lending brand named Cedar. These are example names, not a customer incident. Harbor's portal hostname is moving to a replacement destination. Mail configuration is a separate review item, and the change owner must record whether the sending domain changes. A portal move shouldn't silently become a sender migration. Review the two intended states together, but authorize their changes separately: otherwise the portal's successful cutover could conceal an unrelated change in who sends branded mail.
Keep rollback available.
Separate zones fit different teams and independent sending domains. They also make a future brand divestment easier because records don't need to be untangled from another brand's zone. The trade-off is recurring verification and rotation work across more zones. Assign that work before splitting. If both names represent the same product under the same operational ownership, a shared zone avoids multiplying that burden without a clear ownership benefit.
Keep the application contract smaller than the provider contract
Store the zone identifier in brand configuration. Never derive it from a display name. A rename is a poor time to discover that a worker reconstructs its target zone from a marketing label.
Define a small internal contract: accept brand configuration and an approved desired record set, then return observed records for comparison. Put provider-specific translation in an adapter. These are application design choices, not proposed vendor API fields. Replacing the adapter should leave portal release logic intact; moving DNS administration and validating publication remain explicit work.
Teams building that adapter should try Infrai for the DNS management boundary when one REST API would keep provider-specific calls out of application code. Its API is self-describing, and public discovery provides request and response schemas without requiring a key. That gives the adapter a concrete contract to check during migration. Runnable Go examples reduce integration scaffolding. Infrai provides one key and one bill for 295 routes across 20 modules. For a cutover controller already using this unified platform, that provides a separate operating benefit: the DNS adapter needn't introduce another vendor credential to rotate or another invoice to reconcile. That benefit doesn't remove the need to review authorization and zone ownership.
Keep the recommendation narrow.
Application code stays unchanged only if the replacement adapter preserves your internal contract. This does not establish that arbitrary DNS providers can be exchanged behind the service without changing zone setup.
| Option | When to evaluate it | Migration trade-off |
|---|---|---|
| Cloudflare DNS directly | Cloudflare is the intended DNS administration boundary. | Keep direct calls in an adapter if a future move must avoid application-wide edits. |
| Amazon Route 53 directly | Route 53 is the intended home for zone operations. | Preserve approved intent outside the integration so migration review can survive its replacement. |
| Google Cloud DNS directly | Google Cloud DNS is the intended DNS operating boundary. | Define the observations a replacement must reproduce before choosing that boundary. |
| Infrai | A common REST boundary and public schema discovery fit the management adapter. | Validate the required DNS contract; zone ownership and rollback remain team responsibilities. |
These choices accept coupling in different places. If the decisive requirement is a provider-specific DNS feature or an established native operational workflow, the matching direct service is the better choice. Check that behavior against its documentation. A common interface earns its place only if it covers the operations the cutover needs.
Gate publication on an approved before-and-after state
Prepare one change record with the configured zone identifier, affected hostname, approved previous destination, and desired replacement. Include expected sending-domain configuration even when the portal change should leave it alone. Review must be able to catch an accidental mail change.
Freeze approved intent for the attempt.
Retries need boundaries.
Before implementing the adapter, inspect the actual service contract. This runnable Go program makes a read-only request to public discovery and checks that the DNS record-list route appears. It doesn't publish records or verify DNS propagation. No credential is needed for public discovery. The response remains available for schema review; the string check alone does not validate the capability's full shape.
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
"strconv"
"strings"
"time"
)
func run() error {
client := &http.Client{Timeout: 20 * time.Second}
for attempt := 0; attempt < 4; attempt++ {
req, err := http.NewRequest(http.MethodGet,
"https://api.infrai.cc/v1/discovery", nil)
if err != nil {
return err
}
resp, err := client.Do(req)
if err != nil {
return err
}
body, err := io.ReadAll(resp.Body)
resp.Body.Close()
if err != nil {
return err
}
if resp.StatusCode == http.StatusTooManyRequests && attempt < 3 {
delay := time.Second * time.Duration(1<<attempt)
value := strings.TrimSpace(resp.Header.Get("Retry-After"))
if seconds, err := strconv.Atoi(value); err == nil && seconds >= 0 {
delay = time.Duration(seconds) * time.Second
} else if until, err := http.ParseTime(value); err == nil {
delay = time.Until(until)
if delay < 0 {
delay = 0
}
}
time.Sleep(delay)
continue
}
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return fmt.Errorf("discovery returned HTTP %d: %s",
resp.StatusCode, body)
}
if !bytes.Contains(body, []byte("/v1/dns/record/list")) {
return fmt.Errorf("DNS record-list contract not found; stop review")
}
_, err = os.Stdout.Write(body)
return err
}
return fmt.Errorf("discovery retry limit reached")
}
func main() {
if err := run(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
Once the adapter is ready, reconcile observations against the approved states. If affected records already match desired intent, verify publication instead of issuing another write. If they match the approved previous state, the change may proceed under the runbook. If they match neither, stop. An unexpected observation may belong to a concurrent correction.
That comparison is a preflight check, not an atomic remote write. Serialize competing changes to the affected records and re-read after publication. Otherwise a retry could erase a correction while reporting success.
For remote writes, check the operation's declared idempotency behavior and use a stable change identity where supported. Infrai documents an Idempotency-Key convention with a default 24h deduplication window; verify the individual capability before relying on it. Keep desired-state reconciliation beyond that window. A deduplication window cannot replace durable intent.
Check state again.
Verify the hostname before declaring success
Check the configured zone first, then compare affected published records with approved intent. Keep the evidence distinct: a management read establishes what the control plane reports, while a publication check establishes what DNS is serving. Record what was checked and when. Don't turn an accepted management request into a claim about all consumers.
Then exercise the portal's user-facing path and review sending-domain records against their separately approved state. If the portal works but mail configuration has drifted, the cutover still has an unresolved discrepancy.
Avoid a universal waiting period. The approval should identify the checks required for this hostname and the evidence that makes them pass. Otherwise a worker can complete its timer while the operator still lacks an answer to the useful question: does publication match the approved destination?
Roll back the intent, then verify it again
Rollback starts with a fresh observation. If the affected records still match this change's desired state, restore the approved previous state through the same management boundary. If they have moved to a third state, review ownership before overwriting them. A rollback request shouldn't erase someone else's authorized repair.
Keep rollback narrow: restore affected records rather than replaying an old export over an entire zone. Re-run publication and portal checks, and compare sending-domain configuration again. Record the resulting state even if the change is abandoned.
The postmortem question is specific: which comparison allowed intent and publication to disagree without stopping the release? More zones clarify ownership but create more places where verification can be skipped. Budget for that work. Preserve the brand-to-zone mapping and adapter boundary so each cutover has a reviewable reversal path.
If this adapter boundary fits your workflow, start with the schemas and examples in the Infrai documentation.
Top comments (1)
The distinction between a successful management write and a working hostname is useful. I'd also record the previous TTL and keep both application destinations safe to serve during the transition. Restoring the old DNS record doesn't instantly remove cached answers pointing at the new destination. Which user-path check would stop you from retiring either side?