Zero-downtime DNS cutovers require three automated checks: lint the zone file before merge to catch missing trailing dots and CNAME conflicts, query the new un-delegated nameservers directly to confirm record parity against live DNS before touching the registrar, and monitor multi-region propagation until stale caches expire.
- Who it is for
- DevOps, SRE and infrastructure teams switching DNS hosts, editing BIND/Azure DNS zones or rolling out CDNs.
- What it covers
- A three-gate DNS release flow combining static zone linting, direct nameserver parity diffs and 6-continent propagation.
- Why it matters
- One missing trailing dot, dropped MX row or stale DNSSEC DS record takes down web and email simultaneously.
- How to integrate
- Run zone-format on PRs, zone-precheck before updating registrar NS records, and dns-propagation after cutover.
Preview how zone pre-check compares live DNS against prospective nameservers, or check worldwide propagation.
- Lint the zone on PR.
- Populate prospective nameservers.
- middle.network diffs un-delegated NS directly before registrar cutover.
- Confirm global convergence and notify Slack or Teams.
The four mistakes that cause DNS migration outages
- Missing trailing dots in BIND zone files: writing mail.example.com instead of mail.example.com. silently appends the zone origin and creates mail.example.com.example.com.
- Apex and sibling CNAME conflicts: placing a CNAME at the zone apex or beside MX/TXT records breaks RFC 1034 rules and drops mail or verification records.
- Incomplete parity on the new DNS host: forgetting an SPF TXT record, DKIM selector, CAA record or subdomain before switching nameservers at the registrar.
- DNSSEC DS mismatch: switching DNS hosts while an old DS record remains published at the parent registry causes validating resolvers to return SERVFAIL worldwide.
Gate 1 and Gate 2: lint the zone and diff un-delegated nameservers
Before merging a zone edit, send the BIND or Azure DNS export to our zone-format API to catch syntax errors, CNAME collisions and invalid TTLs with exact line numbers. Once records are provisioned on your prospective DNS host (Cloudflare, Route 53, Azure DNS or NS1), call zone-precheck with the new nameservers. middle.network queries those servers directly over UDP/TCP before delegation changes and compares apex, www, MX, TXT, CAA and common subdomains against live DNS.
# 1. Lint a BIND or Azure DNS zone file in CI
curl -sS -X POST "https://api.middle.network/v1/tools/zone-format" \
-H "Authorization: Bearer $MN_API_KEY" \
-H "Content-Type: application/json" \
-d "$(jq -Rs '{input:{domain:"example.com", text:.}}' zones/example.com.zone)" | jq '{status, summary, findings}'
# 2. Compare live DNS against new un-delegated nameservers before registrar cutover
curl -sS -X POST "https://api.middle.network/v1/tools/zone-precheck" \
-H "Authorization: Bearer $MN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"domain":"example.com","nameservers":"ns1.cloudflare.com,ns2.cloudflare.com"}}' | jq '{status, summary, findings}'// scripts/dns-cutover-gate.mjs
const API = 'https://api.middle.network/v1/tools';
const KEY = process.env.MN_API_KEY;
const domain = process.env.TARGET_DOMAIN || 'example.com';
const newNs = process.env.NEW_NS || 'ns1.cloudflare.com,ns2.cloudflare.com';
const run = async (tool, input) => (await fetch(`${API}/${tool}`, {
method: 'POST',
headers: { Authorization: `Bearer ${KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ input }),
})).json();
const [pre, sec, health] = await Promise.all([
run('zone-precheck', { domain, nameservers: newNs }),
run('dnssec', { domain }),
run('dns-health', { domain }),
]);
for (const r of [pre, sec, health]) {
console.log(`[${r.tool}] ${r.status.toUpperCase()}: ${r.summary.plain}`);
}
if ([pre, sec, health].some((r) => r.status === 'fail')) process.exit(1);Gate 3: verify global propagation and authoritative-vs-cache convergence
After updating records or nameservers, checking from a single laptop hides regional caching. Calling our DNS propagation and authoritative-vs-cache endpoints queries public resolvers across global probe regions and compares them straight against your authoritative nameservers, showing remaining TTL seconds on any stale cache and distinguishing intentional CDN geo-routing from genuine lag.
Why our DNS engine catches cutover bugs other checkers miss
Browser-based DNS tools usually wrap a single OS stub resolver that strips TTLs, hides authority flags and collapses SERVFAIL into "not found". middle.network runs its own raw UDP/TCP DNS wire client across global Tier-1 probe regions, talking directly to un-delegated nameservers and preserving real wire metadata.
zone-precheck speaks straight to your prospective nameservers before registrar NS records move, catching missing MX or TXT rows early.
zone-format catches missing trailing dots, CNAME collisions and bad TTLs with exact line numbers before import.
Multi-region probes distinguish intentional geo-DNS edge IPs from genuinely stale resolver caches with live TTL countdowns.
Questions people ask
Sources and further reading
Written by the middle.network engineering team (Middle Enterprises Pty Ltd, ABN 88 633 909 412), who build and operate these tools. Last reviewed 2026-11-27.