A school’s domain should not finish onboarding just because one regional backend sees the expected DNS record. In a multi-region edtech service, the admission decision needs a consistent ownership result and a separate account of the evidence supporting school-branded email. Geographic routing adds another question: which region receives the next request while cached answers still point somewhere else?
Short answer: prefer request-layer steering when domain admission must remain consistent during regional failure. Use geographic DNS for coarse regional placement when the service can tolerate clients continuing to use cached destinations. TTL caching limits how quickly a changed answer becomes useful; it does not provide a deadline for moving every client. Keep ownership proof and mail authentication evidence independent of that routing choice.
The useful comparison starts with evidence freshness. An OTP delivery report, an aligned authentication result, and a successful ownership challenge answer different questions. None should silently substitute for the others. Keep them separate.
What must a school prove before onboarding completes?
Treat school domain admission as a policy decision backed by explicit evidence. A proposed workflow can require a tenant-specific DNS challenge, then record the domain, challenge generation, observation time, and verification outcome. That is an application design, not a claim that DNS defines a universal onboarding protocol. Bind the challenge to the requesting tenant so the same observation cannot accidentally admit a different school.
Ownership comes first.
Email evidence belongs alongside that result, with its own meaning. RFC 7489 defines DMARC in terms of domain alignment and the results of SPF and DKIM authentication. Passing DMARC does not establish that an application’s tenant completed its ownership challenge. Conversely, publishing an ownership token says nothing about whether a particular school-branded message authenticates correctly. A domain’s DMARC policy also cannot promise inbox placement or OTP arrival.
For this workflow, retain an authentication result from a controlled test message and track delivery observations separately. A successful test supports a narrower decision than “all student OTPs will arrive.” Define that boundary in the admission policy. If the product requires both ownership proof and acceptable mail authentication evidence, a routing change must preserve both requirements.
The distinction matters during a regional outage. Sending a verification request somewhere healthy should not let it bypass evidence that the previous region required. Nor should an old copy of a tenant record authorize a new challenge generation. Design the admission state so that a region unable to obtain the required authoritative decision leaves onboarding pending.
Can DNS geographic routing meet failover limits under TTL caching?
DNS geographic routing chooses an answer during resolution. It does not choose the destination of each subsequent application request. RFC 1034 and RFC 1035 describe the DNS caching model and TTLs; a client can keep reaching a previously selected destination while the answer remains cached. Changing the authoritative answer cannot reach backward and replace an answer already held elsewhere.
Consider a deliberately simplified rollout example: the service publishes a TTL of 60 seconds, then removes an unhealthy region from its answers. A resolver that obtained the old answer just before the change may still return it during its remaining cache lifetime. Even that example is too narrow to establish a universal 60-second recovery guarantee. RFC 8767 describes serving stale DNS data under specified conditions, while application connections have a lifetime separate from DNS caching.
An open connection does not move because a record changes.
There is a second timing trap in onboarding. Suppose a verification lookup happens before the school publishes its challenge record. RFC 2308 defines negative caching, so a later lookup through a caching resolver can still encounter the earlier absence. Distinguish “the expected record was not observed” from “the school does not control this domain.” The former supports a retry policy; the latter is a much stronger conclusion.
For the admission UI, preserve the pending state and explain that verification has not completed. For operators, record the lookup outcome and observation time. Hammering the same cache with immediate retries is a poor way to obtain newer evidence; retries need a bounded schedule and a terminal policy outcome. Bound the retries.
Geography adds uncertainty of its own. The recursive resolver is not necessarily located with the student or school administrator. EDNS Client Subnet, described in RFC 7871, can supply client-network information, but introduces privacy considerations and should not be assumed available for every lookup. Geographic DNS therefore provides a placement signal. It is insufficient evidence for a strict rule about where a tenant’s requests or data must be processed.
Derive the routing policy from the admission evidence
Start with the tenant’s permitted processing regions and the admission decision’s source of truth. Then decide which healthy destinations are eligible. Geographic proximity can help choose among eligible destinations; it should not make an otherwise forbidden destination eligible.
This ordering is especially useful for a school administrator completing verification while students are requesting OTPs. Their network locations need not match. The domain admission decision should still refer to the same tenant and challenge generation, while message authentication observations should refer to the actual sending configuration under evaluation.
A request-layer router can apply application context to an individual request, provided that context is available and validated. It also creates an operational dependency: its ingress path and admission-state access need their own availability design. Moving the decision above DNS does not remove the need to design recovery. It gives the application a place to enforce a policy after a request reaches a functioning ingress.
Here is an illustrative policy function. Its inputs are already evaluated application state; it performs no DNS lookup and sends no message.
def admission_route(
*,
ownership_verified,
mail_evidence_accepted,
allowed_regions,
healthy_regions,
preferred_region,
):
if not ownership_verified or not mail_evidence_accepted:
return {"status": "pending", "region": None}
eligible = sorted(set(allowed_regions) & set(healthy_regions))
if not eligible:
return {"status": "pending", "region": None}
region = preferred_region if preferred_region in eligible else eligible[0]
return {"status": "ready", "region": region}
The fallback is intentionally plain: deterministic selection among eligible regions. Production policy may need capacity or latency information, but those are additional inputs, not reasons to ignore admission evidence. The function also assumes the caller has supplied current, trustworthy state. A stale boolean from an isolated regional database would defeat the policy.
Keep evidence storage small and purposeful. A verification outcome and authentication summary may be sufficient for diagnosis without retaining student addresses or OTP contents in routing logs. Choose retention and access rules for the school’s requirements; geographic placement alone does not establish compliance.
DNS placement versus request steering: choose by the tolerated gap
With those constraints established, the comparison becomes concrete.
| Decision | Geographic DNS placement | Request-layer steering |
|---|---|---|
| Where selection happens | When a DNS answer is selected | After a request reaches functioning ingress |
| What a changed selection affects | Subsequent resolution, subject to caching | Requests handled by the updated routing policy |
| Main recovery boundary | Cached answers and existing connections can retain old destinations | Ingress availability and access to the required policy state |
| Admission evidence | Requires an application-level check at the destination | Can be checked as part of application routing |
| Best fit here | Coarse placement with tolerated destination overlap | Consistent school-domain admission across eligible regions |
Prefer request steering for this admission workflow because its critical input is evidence tied to a tenant, rather than a resolver’s apparent location. The trade-off is operational complexity: the team must operate the ingress and maintain access to the decision state. A geographically distributed router with inconsistent admission records is still inconsistent.
Request steering is not suitable as the sole recovery mechanism when requests cannot reach its ingress. Its limitation is straightforward: it can't redirect a request it never receives. Use coarse DNS placement only where the resulting cache overlap is acceptable, and provide an ingress recovery design for the stricter case.
DNS remains useful when the destination regions can safely serve overlapping traffic during cache transitions. If both regions enforce the same admission policy and temporary placement differences are acceptable, DNS can provide the initial placement without carrying every routing decision. Combining the layers is reasonable: DNS locates an ingress, and application policy chooses an eligible backend.
Do not promise rapid failover from a short TTL alone. Define the acceptable overlap first, including the period when requests can continue arriving at a removed destination. If that destination cannot serve them, the recovery design needs a functioning path beyond publishing a different DNS answer.
Roll out with evidence-preserving failure tests
Before enabling steering for school onboarding, test a challenge that is initially absent and later published, an old challenge generation, unavailable admission state, and a regional failure while a client retains an earlier DNS answer. Include an existing connection. Check whether each case preserves the policy’s pending or ready result, rather than measuring only whether an HTTP request succeeds.
Observe routing and admission separately. Record the selected region, policy version, evidence observation time, and admission outcome. Keep message authentication results and delivery outcomes distinguishable so an OTP delay does not masquerade as lost domain ownership. These are proposed observability fields, not a promise that a DNS lookup can reveal mail delivery.
Begin with a limited set of school tenants and compare decisions before allowing the new router to control admission. Agree on rollback behavior while cached destinations remain in use. The rollout succeeds when a regional change preserves the evidence required to admit a domain and traffic reaches only eligible destinations.
For school-domain admission, choose request steering when consistent evidence checks govern completion. Add geographic DNS placement where destination overlap is acceptable, and treat cache behavior as part of the rollout contract.
Sources
References:
- RFC 1034 — Domain Names: Concepts and Facilities. https://datatracker.ietf.org/doc/html/rfc1034
- RFC 1035 — Domain Names: Implementation and Specification. https://datatracker.ietf.org/doc/html/rfc1035
- RFC 2308 — Negative Caching of DNS Queries. https://datatracker.ietf.org/doc/html/rfc2308
- RFC 8767 — Serving Stale Data to Improve DNS Resiliency. https://datatracker.ietf.org/doc/html/rfc8767
- RFC 7871 — Client Subnet in DNS Queries. https://datatracker.ietf.org/doc/html/rfc7871
- RFC 7489 — Domain-based Message Authentication, Reporting, and Conformance (DMARC). https://datatracker.ietf.org/doc/html/rfc7489
Top comments (0)