Network Operations
Debugging DNS Failures From Delegation to the Browser
A layer-by-layer DNS troubleshooting workflow for delegation, authoritative records, resolvers, DNSSEC, CDN origins, mail safety, and verifiable cutovers.
Author: Fahad Bin Shakir · Published: · Updated: · 6 min read

Introduction
When a domain fails, the visible symptom is often misleading. A browser may report that a site cannot be reached even though the authoritative record is correct, because the registrar delegates to an old nameserver, a DNSSEC signature is invalid, one recursive resolver holds a negative cache, or the CDN accepts the hostname but cannot reach its origin. Repeatedly editing the A record adds new variables without locating the broken layer.
Reliable diagnosis follows the resolution chain from the root toward the application and records every answer with its responding server and TTL. It distinguishes DNS from TLS, HTTP, and origin routing while still verifying the complete public path at the end. That discipline matters during migrations, where an impulsive nameserver or zone replacement can also erase mail, verification, and security records unrelated to the website.
Capture the exact name, type, resolver, and time
Start with the fully qualified hostname and the record type the client needs. Apex A or AAAA, www CNAME, MX, TXT, CAA, and nameserver records answer different questions. Record the client network, recursive resolver, response code, returned records, TTL, and whether the failure is universal or limited to one geography or protocol. A screenshot of a browser error is not sufficient evidence.
Check IPv4 and IPv6 separately. A correct A record can coexist with a stale AAAA record that sends capable clients to the wrong server. Compare command-line resolution with the browser, but remember browsers and operating systems may use encrypted DNS, local caches, or connection reuse. Change one variable at a time and preserve the original observations before flushing anything.
Trace delegation before inspecting zone content
Walk from the root and top-level domain to the delegated authoritative nameservers. Confirm the registrar's nameserver set matches the intended provider and that required glue records are reachable. Query each authoritative server directly for the same name and type. If they disagree, the problem is inside zone distribution or a partially completed delegation, not a visitor's local cache.
Distinguish NXDOMAIN, which says the name does not exist, from NOERROR with an empty answer, SERVFAIL, timeout, and referral. These states point to different faults. An empty answer may mean the zone lacks that type; SERVFAIL can indicate DNSSEC validation or an authoritative failure. Retain the authority and additional sections because they show where the chain changed direction.
Validate DNSSEC as part of the chain
DNSSEC connects a parent DS record to keys and signatures in the child zone. Moving DNS providers without updating or removing the DS record can make validating resolvers return SERVFAIL even though direct nonvalidating queries appear correct. Inspect the chain of trust, signature validity windows, key tags, and algorithm support. Do not disable validation on clients as the production fix.
Plan provider migrations so the parent and child remain consistent throughout the change. Follow the DNS provider's documented key rollover process and allow published TTLs for old material. If DNSSEC must be removed, remove the parent DS through the registrar before deleting signed-zone support, then verify through multiple validating resolvers. Record the security tradeoff and restore signing deliberately.
Understand TTL and negative caching
A TTL is a maximum cache lifetime for a specific answer, not a global propagation timer. Existing caches may retain the old value until its original TTL expires, even after the zone is updated with a lower value. Negative answers can also be cached according to the zone's authority settings. This is why lowering TTL immediately before a cutover does not affect answers already stored.
Reduce relevant TTLs at least one previous-TTL window before a planned change, keep the old destination available during overlap, and restore normal TTLs after stability. Query several public resolvers and the authoritative servers with timestamps. Avoid repeated record toggles: each change creates more cohorts of cached answers and makes the transition harder to reason about.
Separate DNS success from CDN, TLS, and origin success
Once the hostname resolves, inspect the destination IP and connection path. Confirm the CDN or reverse proxy owns that address, has the hostname configured, presents a valid certificate, and forwards the expected Host header to a healthy origin. A 521, 502, certificate mismatch, or redirect loop occurs after DNS and should be debugged at the corresponding layer.
Use an explicit host-to-IP override for controlled testing before public cutover, while preserving the TLS server name and HTTP Host. Then verify HTTP and HTTPS for apex and www, paths with query strings, assets, APIs, and an unknown route. Do not publish a DNS change solely because the origin IP answers without the real hostname; virtual hosting may select a completely different site.
Protect non-web records during migrations
Export the complete zone before changing nameservers and compare every record at the destination. Preserve MX, SPF, DKIM, DMARC, verification TXT records, CAA, service discovery, and subdomain delegations. Provider interfaces may flatten CNAMEs or represent the apex differently, so compare effective answers rather than only screenshots of forms.
After delegation, test mail acceptance and authentication without sending bulk traffic, certificate issuance paths, third-party domain verification, and important subdomains. Monitor authoritative query errors and application traffic through at least the longest relevant TTL. Keep account access and rollback instructions available outside the failing domain, because email on that same domain may be unavailable during the incident.
Build a reusable evidence packet for DNS incidents
Create a standard capture containing timestamped authoritative answers, a trace of delegation, DNSSEC validation output, responses from selected recursive resolvers, current zone serial, registrar nameserver settings, and HTTP or TLS results after resolution. Redact account identifiers and tokens, but keep the exact hostname, record type, response code, TTL, and responding server. This packet lets a DNS provider or registrar act on evidence instead of interpreting screenshots from caches they cannot inspect, and it preserves the pre-change state if an attempted repair makes symptoms different.
Add known-good baselines for critical names and alert on delegation, DS, certificate, and origin changes from outside the hosting network. Avoid treating a single public resolver as global truth; compare independent vantage points and authoritative data. During closure, document the faulty layer, why existing monitoring missed it, and which record or process owns prevention. The durable fix may be zone-as-code review, restricted registrar access, dual-provider architecture, or simply a migration checklist that preserves records and observes the full previous TTL.
Deployment checklist
- Record the full hostname, record type, resolver, response code, TTL, and time.
- Trace root, TLD, delegation, and every authoritative server before editing records.
- Check A and AAAA paths independently and interpret empty, NXDOMAIN, and SERVFAIL correctly.
- Validate the DNSSEC chain and parent DS during provider changes.
- Plan TTL changes one full existing-TTL window before cutover.
- Verify CDN hostname, TLS certificate, Host forwarding, and origin health after resolution.
- Export and compare mail, verification, CAA, and delegated subdomain records.
- Keep old endpoints and an external communication channel through the observation window.
