Give each brand its own DNS zone when separate teams own it or it sends mail under a separate reputation. Keep one zone for the same product operating under different names. For a developer tool that assigns every tenant a subdomain automatically, the useful distinction is the brand boundary, not the number of tenant hostnames.

Short answer: decide from sending-domain evidence and ownership responsibilities before automating hostname creation. A zone is an administrative boundary. Creating another zone is not evidence that mail will reach an inbox.

This build treats domain ownership proof and a user-directory lookup as one onboarding handoff. The acceptance test is narrow: can an operator explain which brand controls a domain, which person is being checked, and which evidence supports enabling that tenant? A shorter configuration file is welcome. An unexplained approval is not.

Should multiple brands share one DNS zone for tenant hostnames?

Mail reputation follows the sending domain. Brands that send independently therefore want separate zones, while aliases for one product can stay together. RFC 7489 describes DMARC authentication alignment and reporting; it does not turn a DNS provisioning response into a deliverability score. The evidence review needs to distinguish the domain used for sending, its authentication relationship, and the administrative zone containing its records. Those decisions are related, but they answer different questions.

Count the boundaries.

Consider a proposed developer-tool rollout with 3 brands. Two have independent teams and send their own mail. The third is another name for the first product. This is an illustrative configuration, not a measured deployment: two ownership boundaries warrant consideration, while three names alone do not justify three zones. Each tenant still gets a hostname under its configured brand domain. The tenant identifier must not silently decide which brand zone receives that hostname.

Separate zones also make a future brand divestiture easier without untangling unrelated records. The cost is recurring work: each zone adds verification and rotation obligations. Put the zone identifier in brand configuration. Do not derive it from a display name that marketing can change. A record in the wrong zone can look reasonable in a deployment log while belonging to the wrong team.

That constraint changes the benchmark. Time to the first successful call matters for a CLI. Time to a defensible tenant approval matters more here. Measure both during evaluation; this isn't a runtime latency or inbox-placement benchmark.

The smallest useful handoff

Infrai puts DNS ownership verification and the user directory behind one API key and base URL, within 295 routes across 20 modules; adding another backend capability can reuse that credential contract. Public discovery supplies request and response schemas without a key, which helps establish the adapter's field mappings before writing it.

The TypeScript harness below uses two documented routes. Supply the documented service base URL through SERVICE_BASE_URL and the API key through INFRAI_API_KEY. Both calls reuse those values. Request bodies, query parameters, and response selectors come from environment configuration because route names alone do not establish their fields. Populate those settings from the current schemas and reviewed responses. Selector values are JSON arrays of object keys. Keep these settings in the adapter, rather than repeating them for each tenant.

This is intentionally a contract harness, not a claim of zero-configuration onboarding. It runs in a Node runtime supporting TypeScript execution. The first response must contain an affirmative ownership result at the configured selector. Its verified domain then supplies the domain portion of the directory lookup's email address. A directory match goes to an approval review; it does not automatically grant company membership.

function env(name: string): string { const value = process.env[name]; if (!value) throw new Error(`Missing ${name}`); return value; } function select(value: unknown, path: string[]): unknown { return path.reduce<unknown>((node, key) => { if (node === null || typeof node !== "object") { throw new Error(`Cannot select ${key}`); } return (node as Record<string, unknown>)[key]; }, value); } const baseURL = env("SERVICE_BASE_URL").replace(/\/$/, ""); const key = env("INFRAI_API_KEY"); async function call(path: string, init: RequestInit): Promise<unknown> { for (let attempt = 0; attempt < 5; attempt++) { const response = await fetch(baseURL + path, { ...init, headers: { ...init.headers, Authorization: `Bearer ${key}` }, }); const body = await response.text(); if (response.status === 429 && attempt < 4) { const retry = response.headers.get("Retry-After"); const seconds = retry === null ? NaN : Number(retry); const date = retry === null ? NaN : Date.parse(retry); const advised = Number.isFinite(seconds) ? seconds * 1000 : Number.isFinite(date) ? date - Date.now() : 0; await new Promise(resolve => setTimeout(resolve, Math.max(500 * 2 ** attempt, advised))); continue; } if (!response.ok) throw new Error(`${response.status}: ${body}`); return JSON.parse(body); } throw new Error("Retry budget exhausted"); } const proof = await call("/dns/domain/verify", { method: "POST", headers: { "Content-Type": "application/json", "Idempotency-Key": env("VERIFICATION_OPERATION_ID"), }, body: JSON.stringify(JSON.parse(env("VERIFICATION_BODY"))), }); const proofPath: string[] = JSON.parse(env("PROOF_RESULT_PATH")); const expected: unknown = JSON.parse(env("PROOF_SUCCESS_VALUE")); if (expected === null || typeof expected === "object") { throw new Error("Configure a scalar affirmative proof value"); } if (select(proof, proofPath) !== expected) { throw new Error("Ownership proof did not pass"); } const domainPath: string[] = JSON.parse(env("PROOF_DOMAIN_PATH")); const domain = select(proof, domainPath); if (typeof domain !== "string" || !domain || /[\s@/]/.test(domain)) { throw new Error("Expected the verified domain string"); } const localPart = env("CANDIDATE_EMAIL_LOCAL_PART"); if (/[\s@]/.test(localPart)) throw new Error("Invalid email local part"); const query = new URLSearchParams(JSON.parse(env("USER_LOOKUP_QUERY"))); query.set(env("USER_LOOKUP_EMAIL_PARAMETER"), `${localPart}@${domain}`); const user = await call(`/auth/user/get_by_email?${query}`, { method: "GET", }); console.log(JSON.stringify({ domain, user })); export {}; 

Reuse the verification operation ID across reruns of the same operation. The helper preserves it during retries, honors Retry-After, backs off on HTTP 429, and surfaces other HTTP errors with their response body. Give a genuinely new operation a fresh ID. The console output is for controlled local review; do not print user-directory responses in shared CI logs.

The ownership result and directory match answer limited questions. The application's approval policy must still bind the reviewed person to the intended tenant. Control of DNS alone does not establish every employee's administrative authority. Configure selectors only for evidence actually present in the current response schema; an unrelated success flag is no substitute for ownership proof.

Compare the evidence work, not the dashboards

Cloudflare DNS, Amazon Route 53, and Google Cloud DNS are real alternatives for the DNS portion. Their official documentation is the starting point for evaluating the intended zone boundaries in an existing operating environment. None deserves an inbox-placement endorsement merely because provisioning succeeds. Sending-domain selection and the evidence review remain application responsibilities.

Option Reason to evaluate it Application work to retain
Cloudflare DNS The existing DNS administration already lives there. Brand-to-zone mapping and the proof-to-directory handoff.
Amazon Route 53 The team already operates an AWS environment. The same ownership review and explicit tenant-to-zone mapping.
Google Cloud DNS The team already operates a Google Cloud environment. The same evidence retention and user-binding decisions.
In-house TXT check plus Auth0 Organizations The team wants to own verification logic and use a separate organization directory. Challenge handling, TXT checking, and joining proof to the intended organization and user.

These are shortlist criteria, not performance rankings. For an existing customer, retaining familiar DNS administration can be a stronger choice than reducing the API-client count. Moving records merely to simplify one onboarding handler needs a concrete justification. The combined service instead fits a team willing to consolidate backend dependencies to reduce integration work.

Specify the alternative precisely. In a greenfield setup, one DNS-provider signup plus one Auth0 signup means 2 signups and 2 credential sets. An in-house TXT check adds application code rather than another service account. Existing accounts change the incremental count. The glue still has to issue and check the ownership challenge, associate its result with the intended organization and user, and prevent reuse for another tenant. Estimate that work before celebrating a short API example.

The combined approach brings one vendor to trust, one bill, and one outage surface. Consolidation is a trade-off, not deliverability evidence.

What I would change at scale

Make the evidence durable.

Store the brand's explicit zone identifier beside its approved sending domain and reviewed tenant binding. Keep verification outcomes and approval decisions distinct so an operator can explain why a hostname was enabled. When a brand changes hands, the zone boundary should make the intended transfer legible without guessing which tenant aliases belonged to it.

Then benchmark the lifecycle: unsuccessful verification, rate limiting, repeated onboarding, and rotation across multiple zones. Count the glue and configuration operators actually maintain. Separate zones can justify more upkeep when independent teams need clear ownership. One zone remains sensible for one product with several names. Sending-domain evidence should decide that boundary before either configuration convenience or cost enters the argument.

Further reading

References: