Fix DNS Resolution Failure — Diagnose & Restore Connectivity
Direct answer
DNS resolution failures occur when a domain's DNS records are misconfigured, the domain registration has expired, or DNS propagation is incomplete. Use dig or nslookup to verify current resolution, then check the DNS provider for correct record configuration.
Structured breakdown
Cause
DNS resolution failures are caused by misconfigured DNS records, expired domains, or DNS server issues. Use dig or nslookup to check record propagation, then verify your DNS configuration.
Fix
- Run dig <domain> or nslookup <domain> to check current DNS resolution
- Verify DNS records in your DNS provider dashboard (A, CNAME, etc.)
- Check domain registration status renew if expired
Outcome
Domain resolves correctly from all locations and services reconnect without DNS errors.
Common causes
- DNS records misconfigured or deleted
- Domain registration expired
- DNS propagation not yet complete after a change
- DNS server (e.g., Route 53, Cloudflare) experiencing issues
- Local DNS cache serving stale records
Fix steps
- 1
Run dig <domain> or nslookup <domain> to check current DNS resolution
- 2
Verify DNS records in your DNS provider dashboard (A, CNAME, etc.)
- 3
Check domain registration status renew if expired
- 4
Flush local DNS cache: ipconfig /flushdns (Windows) or sudo dscacheutil -flushcache (macOS)
- 5
Wait for DNS propagation if changes were made recently (up to 48 hours for some records)
Analyze this issue
Paste the issue description, logs, or symptoms into the fix tool to inspect this problem with your own runtime details.
Need more context?
If the standard steps do not resolve the issue, open the fix tool and include the current logs, configuration, and deployment changes.
Open Fix ToolFrequently asked questions
Related technical context
These examples show the commands, logs, and configuration patterns most often used to verify this issue.
Command examples
dig example.com +shortnslookup example.com 8.8.8.8dig example.com @ns1.cloudflare.com
Log snippet
NXDOMAIN - Query for example.com returned no results
server can't find example.com: NXDOMAIN
resolution failed: SERVFAILConfig snippet
; DNS Zone File
example.com. IN A 203.0.113.10
www IN CNAME example.com.
@ IN MX 10 mail.example.com.