Skip to content
Hosting Operations6 min read

DNS Not Resolving Error — 7-Step Fix (2026)

Fix DNS not resolving error with a 7-step checklist. Audit, harden, and verify your DNS configuration for 2026 security.

Written by Abdul AbrorTechnical Hosting Support Engineer
Red error messages on a black computer screen indicating blocked web resources
On this page

TL;DR — Key takeaways

  • Start with a full cache flush on the client, then verify the recursive resolver and authoritative zone before changing anything.
  • Check for stale records, TTL mismatches, and missing glue records before assuming the server is broken.
  • Harden DNS with DNSSEC, rate limiting, and restricted recursion, then verify with dig and security scanners.
  • Keep backups of zone files and DNS provider credentials before making changes, and test in a staging environment first.
  • If DNS still fails, isolate the fault by testing public resolvers, checking firewall rules, and reviewing server logs.

DNS not resolving error blocks websites, email, and APIs until the lookup path is fixed. The problem usually sits in one of three places: the client cache, the recursive resolver, or the authoritative zone.

This guide walks through a practical, security-focused workflow. You will learn where to look, what to check, and how to verify the configuration is secure before going live.

Why DNS Fails: The Three-Layer Model

DNS resolution travels through three layers: the client cache, the recursive resolver, and the authoritative nameserver. A failure at any layer stops the lookup.

The client cache stores previous answers. Stale entries cause old IPs to persist even after the zone changes. Restart the resolver service or flush the cache to clear this layer.

The recursive resolver asks root, TLD, and authoritative servers in sequence. If the resolver is misconfigured, overloaded, or blocked, queries fail. Public resolvers like 8.8.8.8 and 1.1.1.1 help isolate this layer.

The authoritative zone holds the actual records. Missing A records, wrong TTLs, or expired glue records break resolution. Verify the zone file and SOA record before changing anything else.

Step-by-Step Fix for DNS Not Resolving Error

Start with the client. Flush the local DNS cache and restart the resolver service. On Linux, run sudo systemd-resolve --flush-caches or restart systemd-resolved. On Windows, run ipconfig /flushdns.

Test with a public resolver. Run dig @8.8.8.8 example.com and dig @1.1.1.1 example.com. If these succeed but your internal resolver fails, the problem is local to your network or resolver configuration.

Verify the authoritative zone. Log into the DNS provider or nameserver and check the A record, TTL, and SOA serial. A missing record, wrong TTL, or stale glue record causes immediate failure.

Check for propagation and caching. Low TTL values speed up changes but increase query load. High TTL values reduce load but delay updates. Choose a value that matches your change cadence and document it.

Review firewall and network rules. UDP and TCP port 53 must be allowed for DNS traffic. Blocked ports, rate limiting, or upstream filters cause intermittent failures. Test with dig from outside the network to confirm.

Security Hardening Checklist

Once resolution works, harden the DNS path. DNSSEC validates that responses come from the correct zone and have not been tampered with. Sign the zone and validate the chain of trust with dig +dnssec-check or a third-party validator.

Restrict recursion. Authoritative-only servers should not perform recursive queries. Configure the server to answer only for your zone and reject queries for other domains. This reduces amplification and cache poisoning risk.

Enable rate limiting. Recursive resolvers can be abused for amplification attacks. Set per-client query limits and drop excessive requests. Monitor logs for spikes in NXDOMAIN or REFUSED responses.

Use secure transport where possible. DNSSEC over TCP or DNS over TLS adds integrity and confidentiality. Configure the resolver to prefer encrypted transport and fall back only when necessary.

Keep backups and credentials safe. Export zone files and store provider credentials in a secure vault. Test any change in a staging environment before applying it to production.

How to Verify the Configuration Is Secure

Run dig +trace to see the full delegation path. Confirm each server responds with the correct record and that DNSSEC status is valid or insecure, not bogus.

Use a DNSSEC validator to check the signature chain. A valid chain means the zone is signed and the resolver can trust the response. A bogus status means the signature is broken or the key is missing.

Review resolver logs for refused or truncated queries. Repeated REFUSED responses often indicate misconfigured ACLs or rate limiting. Truncated responses suggest the server is dropping large packets or misusing TCP.

Test from outside the network. Query your domain from a public resolver and from a different geographic location. If results differ, the issue is local routing, firewall rules, or provider-side caching.

Schedule periodic audits. Check zone files for expired records, verify DNSSEC status after every change, and review firewall rules quarterly. Security hardening is a continuous process, not a one-time step.

When to Escalate and What to Expect

If dig against a public resolver fails, the issue is likely with the authoritative provider or the zone itself. Open a support ticket with the provider and include the dig output, the SOA record, and the TTL value.

If dig against a public resolver succeeds but your internal resolver fails, check the local resolver configuration, firewall rules, and network segmentation. Corporate proxies and split-horizon DNS can also cause this.

If DNSSEC validation returns bogus, do not ignore it. A broken signature can cause resolvers to refuse the response. Re-sign the zone, verify the key rollover, and test with a validator before pushing changes to production.

If you change TTLs or records, expect propagation delays. Low TTL values speed up updates but increase query volume. High TTL values reduce load but delay changes. Document the chosen value and communicate it to stakeholders.

Keep a rollback plan. Back up zone files, export provider credentials, and note the previous configuration. If a change breaks resolution, restore the backup and verify before making further changes.

Quick troubleshooting checklist

  • Flush local DNS cache on the affected client and retry resolution.
  • Run dig or nslookup against a known public resolver to isolate the fault.
  • Verify the authoritative nameserver zone file and SOA record.
  • Check TTL values and ensure no stale or conflicting records exist.
  • Confirm DNSSEC signing status and validate the chain of trust.
  • Review firewall rules for UDP/TCP port 53 and rate limiting settings.
  • Back up zone files and provider credentials before applying changes.

FAQ

What is the fastest way to fix DNS not resolving error?

Flush the local DNS cache, restart the resolver service, and test with a public resolver like 8.8.8.8 or 1.1.1.1. If resolution works there, the issue is local; if not, check the authoritative zone and firewall rules.

How do I know if DNSSEC is causing the failure?

Run dig +dnssec-check or use a DNSSEC validator tool. If the response is marked as bogus or insecure, the zone signature is invalid or the chain of trust is broken, and the zone must be re-signed or the validator configured correctly.

When should I harden DNS beyond basic troubleshooting?

Harden DNS once the zone resolves correctly and you control the authoritative server. Apply DNSSEC, restrict recursion, enable rate limiting, and monitor logs. Test in staging first and keep a rollback plan for the provider and zone files.