Customer-owned zones make automatic tenant provisioning depend on someone else's DNS changes. Platform-owned zones keep that work within your control. TL;DR: offer a documented A record for a customer's apex domain and a CNAME for its www hostname; make the customer's obligation to update the apex address part of onboarding. Standard DNS forbids a CNAME at the apex. A records are the portable answer, but they put your infrastructure address in another organization's zone.

For a bounded production exercise, I would start with one fintech tenant: North Ledger receives north-ledger.tenants.example.com automatically, then asks to use example.net and www.example.net. This is a planning scenario, not an incident report. The useful postmortem question is what happens when the platform's documented address changes after onboarding. A completed provisioning job cannot answer that question. The tenant still owns the apex record.

Name the owner.

The invariant is small enough to put in a runbook: every requested hostname needs a record intent and an accountable zone operator. Retrying the provisioning job must preserve that intent. Publishing both apex and www keeps the customer's two obvious entry points in scope; it does not make those entries share an update owner with the platform's tenant subdomain.

Who owns the A record for customer apex domain support?

For the platform-owned tenant hostname, the provisioning worker can request the DNS change within the zone the platform operates. For a customer-owned domain, the onboarding flow must communicate the required records to the customer unless there is separately authorized control of that zone. Treat those as different delivery obligations. Calling both tasks automatic hides the point where your worker runs out of authority, and a queue retry cannot manufacture that authority. The handoff needs the hostname, record type, documented target, and responsible operator, so a support engineer can explain exactly which change remains with the customer.

That distinction matters before the first migration. An undocumented A record becomes a support burden as soon as somebody needs to explain what it points to. A documented address is better, but it still creates coupling: the customer must update that record when the platform address changes. Put that obligation beside the address itself, where onboarding staff and customer operators will see it.

The www CNAME has a different maintenance shape. It names a target hostname instead of copying the platform's address into the customer's record. It remains a customer-zone change at setup, and it does not remove the separate apex A record obligation.

Two names. Two intents.

A useful acceptance rule is therefore precise: the platform subdomain can have a platform-operated provisioning task, while apex and www each need an explicitly assigned customer-zone task. Do not close the latter merely because the former finished. This is an ownership contract for DNS work; the record plan alone does not establish application readiness.

Compare the apex mechanism before choosing the API

Cloudflare DNS, Amazon Route 53, and DNSimple are real alternatives to evaluate. Their apex mechanisms deserve attention because the customer may already use one of them. Provider-specific conveniences can be useful, but they do not make an ordinary apex CNAME portable. Choose against the zone you can operate and the target the mechanism supports.

Option Apex mechanism to evaluate Ownership and selection boundary
Cloudflare DNS CNAME flattening Evaluate it when the customer's zone uses Cloudflare and its flattening behavior fits the intended target. Include that provider dependency in onboarding.
Amazon Route 53 Alias records Evaluate alias support for the actual target. Do not assume that every external hostname is an eligible alias target.
DNSimple ALIAS records Evaluate its apex ALIAS behavior when the customer uses DNSimple. This adds a provider-specific choice to the customer's zone configuration.
Portable record plan Apex A record and www CNAME Use it when instructions must work across DNS providers. The trade-off is an explicit customer update whenever the documented apex address changes.

These alternatives solve different parts of the handoff. Provider-specific apex behavior can reduce direct address copying where supported; portable A record instructions reduce the number of provider-specific onboarding branches. Neither choice transfers ownership of a customer zone to the platform. If the customer declines a provider-specific mechanism, that is a valid boundary, not a failed onboarding script.

Infrai offers one REST API with a single API key and unified billing, so a Go worker uses plain HTTP with no SDK required and the provisioning workflow can share credentials and billing with scheduling. Its public, unauthenticated discovery surface also lets the team inspect request schemas before implementing the provisioning task. That interface convenience does not change the DNS rule or authorize writes to a customer's zone.

For this fintech workflow, the decision order is ownership, compatible apex mechanism, then API integration. Reversing it produces a pleasant worker implementation with an unresolved customer handoff.

Keep retries attached to an immutable record plan

A provisioning queue should carry a stable record intent, not just an instruction to create a tenant domain. Separate the platform tenant hostname from the customer's two requested names. When an address changes, give the revised plan a new revision so the previous request and the new migration cannot collapse into the same unit of work.

Before implementing the writer, inspect its interface. The following runnable Go program retrieves the public discovery manifest so the team can inspect the DNS capabilities and their declared paths. Configure INFRAI_API_BASE_URL with the service's HTTPS API base including its version prefix, and INFRAI_API_KEY with an operator-supplied credential. Discovery itself is public; using the environment-supplied credential here establishes the same request pattern as the authenticated integration. The program makes no DNS changes and prints the returned manifest without assuming an undocumented DNS response shape.

package main import ( "fmt" "io" "net/http" "net/url" "os" "strconv" "strings" "time" ) func retryDelay(value string, fallback time.Duration) time.Duration { if seconds, err := strconv.Atoi(value); err == nil && seconds >= 0 { return time.Duration(seconds) * time.Second } if deadline, err := http.ParseTime(value); err == nil { if delay := time.Until(deadline); delay > 0 { return delay } return 0 } return fallback } func run() error { base := strings.TrimRight(os.Getenv("INFRAI_API_BASE_URL"), "/") key := os.Getenv("INFRAI_API_KEY") parsed, err := url.Parse(base) if err != nil || parsed.Scheme != "https" || parsed.Host == "" || key == "" { return fmt.Errorf("set an HTTPS API base and an API key") } client := &http.Client{ Timeout: 15 * time.Second, CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse }, } for attempt := 0; attempt < 3; attempt++ { // GET /v1/discovery is read-only; retries cannot duplicate writes. req, err := http.NewRequest(http.MethodGet, base+"/discovery", nil) if err != nil { return err } req.Header.Set("Authorization", "Bearer "+key) resp, err := client.Do(req) if err != nil { return err } body, readErr := io.ReadAll(resp.Body) resp.Body.Close() if readErr != nil { return readErr } if resp.StatusCode == http.StatusTooManyRequests && attempt < 2 { fallback := time.Second * time.Duration(1<<attempt) time.Sleep(retryDelay(resp.Header.Get("Retry-After"), fallback)) continue } if resp.StatusCode < 200 || resp.StatusCode >= 300 { return fmt.Errorf("discovery HTTP %d: %s", resp.StatusCode, body) } _, err = os.Stdout.Write(body) return err } return fmt.Errorf("discovery retry budget exhausted") } func main() { if err := run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } 

This example allows 3 attempts, with a 15-second timeout per request. It honors Retry-After on rate limiting and otherwise uses exponential backoff. Those are example client settings, not measured service limits. The read-only call deliberately stops before mutation: a production writer needs a stable task identifier derived from the tenant, plan revision, and complete desired record, plus durable completion state and reconciliation before repeating a write whose outcome is uncertain. A stable identifier alone doesn't make a remote write atomic with a local acknowledgment.

For customer-operated records, the consumer's job is to preserve and track the handoff. It cannot count emitting the plan as completion of the customer's change. For platform-operated records, reconcile against the requested intent before acknowledging the task. Both paths benefit from stable identity, but they terminate on different evidence.

Address migration is a customer coordination event

Before changing the documented apex address, identify the customers whose plans still name it. The migration work is then concrete: issue revised apex instructions, identify the customer operator, and track the requested change separately from the existing www plan. Do not regenerate a www task merely to make the migration batch look uniform if its intended target has not changed.

The operational trap is a green provisioning dashboard that measures completed worker jobs while the customer still holds an old address. Define what a completion event means before relying on that dashboard. A sent instruction, a customer acknowledgment, and an observed record are distinct pieces of evidence; the runbook should say which one advances each state. These are proposed operating controls, not guarantees supplied by a DNS API.

The portable plan buys broad compatibility at the cost of coordination. That trade-off is acceptable when the platform can document an address and maintain a customer update process. It becomes a poor fit when the product promises that customer operators will never need to revisit apex configuration after onboarding.

Change the promise, or choose a compatible provider-specific mechanism with the customer.

Where this recommendation stops

If the fintech product only needs platform-owned tenant subdomains, skip the customer apex workflow entirely. Keep the automation within the zone the platform operates.

If customer apex domains are required, publish both apex and www instructions, compare provider-specific options against the customer's actual DNS service, and retain the portable A record plan as an explicit operational commitment. The decisive question is who will update the apex record when the documented address changes. Answer that before declaring onboarding complete.

Sources

References for the DNS constraints, provider-specific alternatives, and illustrative addresses: