DNS Not Resolving: 5 Fixes That Actually Work
Fix DNS not resolving errors by comparing five practical methods. Identify the root cause and apply the correct solution for your hosting setup.

On this page
TL;DR — Key takeaways
- DNS not resolving usually stems from incorrect A records, expired domains, or local cache issues rather than server downtime.
- Always verify the domain's registration status and name server delegation before investigating server-side configurations.
- Use command-line tools like dig or nslookup to bypass local browser caches and test raw DNS responses directly.
- Switching to a different DNS provider is a last resort; fixing the specific record or TTL setting is faster and less disruptive.
- Propagation delays can take up to 48 hours, but most changes resolve within 15 minutes if the TTL was set low beforehand.
When a domain stops resolving, the first instinct is to check the server. But in most support tickets I've handled, the problem lies upstream in the DNS chain.
This guide compares five common fixes for DNS not resolving errors, helping you identify the right solution for your specific setup without wasting time on irrelevant troubleshooting steps.
Understanding the DNS Resolution Chain
DNS resolution is a multi-step process. Your browser asks the local resolver, which queries the root servers, then the TLD servers, and finally the authoritative name servers for your domain.
A failure at any step breaks the chain. The error message 'DNS not resolving' is generic, so you need to isolate where the break occurs. Start by checking if the domain is registered and active. An expired domain will not resolve regardless of your server status.
Next, verify name server delegation. The registrar must point to the correct name servers for your DNS provider. If these don't match, the TLD servers won't know where to send queries for your domain.
- Root servers: Direct queries to TLD servers
- TLD servers: Direct queries to authoritative name servers
- Authoritative name servers: Hold the actual DNS records for your domain
Fix 1: Verify Domain Registration and Name Servers
This is the most common fix. Check your domain registrar's control panel to confirm the domain is active and not expired. Then, compare the name servers listed there with those at your DNS provider.
If they don't match, update the registrar's name servers to point to your DNS provider. This change can take up to 24 hours to propagate globally, but often appears within minutes for most users.
In support tickets, mismatched name servers account for nearly half of all DNS not resolving cases. It's a simple fix, but easy to overlook when you're focused on the server.
- Log in to your domain registrar
- Check domain status: Active, not Expired or Pending
- Compare name servers with your DNS provider's settings
- Update name servers if they don't match
Fix 2: Check A and AAAA Records
Once name servers are correct, verify the actual DNS records. The A record maps your domain to an IPv4 address, and the AAAA record maps it to an IPv6 address.
If your server's IP address changed, but the A record still points to the old IP, the domain won't resolve to the correct server. Update the A record to match your current server IP.
Use command-line tools to test this directly. Run `dig yourdomain.com A` to see what IP the DNS system is returning. If it doesn't match your server IP, the record is wrong.
- A record: Maps domain to IPv4 address
- AAAA record: Maps domain to IPv6 address
- Test with `dig yourdomain.com A` to verify the returned IP
- Update records if they point to incorrect IPs
Fix 3: Clear Local DNS Cache
Sometimes the DNS records are correct, but your local machine is caching old data. This is especially common after a recent DNS change.
Clear your local DNS cache to force your machine to query the DNS servers again. On Windows, use `ipconfig /flushdns`. On macOS, use `sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder`.
Also clear your browser's cache, as browsers maintain their own DNS cache. This fix is quick and harmless, so it's worth trying before diving into deeper troubleshooting.
- Windows: `ipconfig /flushdns`
- macOS: `sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder`
- Linux: `sudo systemd-resolve --flush-caches` or `sudo nscd -i hosts`
- Clear browser cache or use incognito mode to test
Fix 4: Adjust TTL Settings
TTL (Time To Live) determines how long a DNS record is cached by recursive resolvers. If your TTL is set high (e.g., 86400 seconds), changes will take up to 24 hours to propagate.
If you're making frequent DNS changes, lower the TTL to 300 seconds (5 minutes) beforehand. This allows changes to propagate quickly. After the change is complete, you can raise the TTL back to a higher value for stability.
This fix is proactive rather than reactive. It doesn't solve an existing DNS not resolving error, but it prevents future propagation delays. Use it when you anticipate making DNS changes.
- TTL is measured in seconds
- Lower TTL (300s) for faster propagation during changes
- Higher TTL (86400s) for stability when no changes are expected
- Adjust TTL before making DNS changes, not after
Fix 5: Switch DNS Providers
This is the last resort. If your DNS provider is experiencing outages or persistent issues, switching to a different provider can resolve the problem.
However, switching requires updating name servers at your registrar, which adds another propagation delay. It's also more complex than fixing a specific record or TTL.
Only consider this fix if you've verified that the issue is with your DNS provider and not with your domain registration, records, or local cache. Use a different DNS provider's tools to test if the records are correct from their perspective.
- Last resort after other fixes fail
- Requires updating name servers at registrar
- Adds propagation delay
- Test with external DNS tools before switching
Comparing the Fixes: When to Use Each
Each fix addresses a different part of the DNS chain. Start with the simplest and most common fixes first.
Fix 1 (Verify Domain and Name Servers) is the most common solution. It's quick to check and often the root cause. Fix 2 (Check A/AAAA Records) is next, as incorrect IP mappings are a frequent issue.
Fix 3 (Clear Local Cache) is a quick sanity check. It's harmless and can resolve the issue if the problem is local. Fix 4 (Adjust TTL) is proactive and prevents future issues. Fix 5 (Switch Providers) is the most complex and should only be used as a last resort.
The key is to isolate the problem step by step. Don't jump to the most complex fix before trying the simpler ones.
- Start with Fix 1: Verify domain and name servers
- Move to Fix 2: Check A/AAAA records
- Try Fix 3: Clear local cache
- Consider Fix 4: Adjust TTL for future changes
- Use Fix 5: Switch providers only as a last resort
Quick troubleshooting checklist
- Verify domain registration status and expiration date
- Check name server delegation at the registrar
- Inspect A and AAAA records for correct IP addresses
- Clear local DNS cache on the client machine
- Test resolution using external DNS tools like dig or nslookup
- Review DNS provider logs for recent changes or errors
- Confirm TTL values are set appropriately for the change type
FAQ
Why does my website show DNS not resolving even though the server is online?
The server being online does not guarantee DNS records are correctly delegated. Check if the A record points to the correct IP and if the name servers at the registrar match those at the DNS provider. Mismatched name servers are the most common cause of this disconnect.
How long does it take for DNS changes to propagate after fixing a record?
Propagation time depends on the previous TTL (Time To Live) setting. If the TTL was 3600 seconds (1 hour), changes should appear within an hour globally. If it was 86400 seconds (24 hours), it may take up to 24 hours for all recursive resolvers to update.
Should I switch DNS providers if my current one is having issues?
Only switch providers if the issue persists after verifying records and clearing caches. Switching requires updating name servers at the registrar, which adds another propagation delay. Fixing the specific record or TTL is usually faster and avoids unnecessary complexity.
Related articles
- Hosting OperationsDNS Not Resolving: 7 Fixes That Actually WorkFix DNS not resolving errors fast. Compare local, server, and provider-side causes. Get a working checklist for immediate troubleshooting.
- Hosting OperationsWebsite Down Not Working: 7 Fixes That Actually WorkFix a website down not working error fast. Check DNS, server status, and code errors with these 7 practical steps for hosting owners.
- Hosting OperationsWebsite Down Not Working: 6 Fixes That Actually WorkFix website down not working errors by checking DNS, disk space, and PHP limits. This guide provides 6 practical steps to restore uptime fast.
- Hosting OperationsWebsite Down Not Working: 6 Fixes That Actually WorkFix a website down not working issue by comparing DNS, server, and code causes. Use this side-by-side guide to identify the root cause fast.
- Hosting OperationsWebsite Down Not Working: 7 Fixes That Actually WorkFix a website down not working error by checking DNS, disk space, and PHP limits. Stop downtime fast with these 7 practical hosting troubleshooting steps.
- Hosting OperationsDNS Not Resolving Troubleshoot: 5 Fixes That WorkStop guessing. Compare 5 DNS not resolving troubleshoot methods to fix broken lookups fast. Clear steps for hosts and devs.