DNS & Optimization

How to Fix 'DNS Server Not Responding' Errors

Reviewed By: RouterVia Engineering Group
Last Reviewed: July 2026
Last Verified: July 2026
Compatibility: All standard modern router platforms

If your web browser fails to resolve web addresses or reports that your DNS server is offline, follow our step-by-step diagnostic workflow to clear your cache, assign public resolvers, and bypass ISP network issues.

Understanding DNS Mappings and Browser Lookups

The Domain Name System (DNS) operates as the telephone directory of the Internet. Every time you enter a URL, your computer initiates a network query on UDP Port 53. By default, your router routes this request to your Internet Service Provider's local DNS servers.

When these ISP servers get overloaded or crash, your browser will display errors like DNS_PROBE_FINISHED_NXDOMAIN. Changing your settings to global public resolvers overrides these unreliable servers, speeding up web navigation and ensuring constant access.

Recommended Tools & Quick Links

DNS Server Comparison — Which One is Most Reliable?

Public DNS resolvers have different performance and uptime profiles. Below is a comparison table of the most reliable alternative DNS resolvers:

Resolver
Primary DNS
Secondary DNS
Avg Uptime SLA
DoH Support
Response Time
Privacy Focus
Cloudflare
1.1.1.1
1.0.0.1
99.99%
Yes (Port 443)
~ 12ms
Excellent (Purged in 24 hours)
Google DNS
8.8.8.8
8.8.4.4
99.99%
Yes
~ 18ms
Moderate (Keeps diagnostic logs)
Quad9
9.9.9.9
149.112.112.112
99.95%
Yes
~ 22ms
Excellent (GDPR Compliant, No IP logs)
OpenDNS
208.67.222.222
208.67.220.220
100.00%
Yes (Proprietary)
~ 24ms
Low (Logs queries for web filters)
ControlD
76.76.2.0
76.76.10.0
99.99%
Yes
~ 15ms
High (Zero logging options)

Operating System Specific DNS Fix Commands

If a standard restart fails, execute these target terminal commands depending on your operating system:

Windows 10 / 11 (Command Prompt as Admin)
# Release current DHCP lease configurations
ipconfig /release

# Request fresh lease from your local router
ipconfig /renew

# Flush the OS DNS resolver cache
ipconfig /flushdns

# Re-register console endpoints with local server
ipconfig /registerdns

# Reset winsock socket configurations
netsh winsock reset

# Reset TCP/IP stack configuration
netsh int ip reset
macOS (Terminal Console)
# Flush DNS resolver cache (macOS Monterey, Ventura, Sonoma, Sequoia)
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

# Renew DHCP Lease via command line
sudo ipconfig set en0 DHCP
Linux (Ubuntu / Debian - Terminal)
# Flush systemd-resolved DNS cache
sudo resolvectl flush-caches

# Check DNS cache and status metrics
sudo resolvectl status

# Alternatively (for dnsmasq architectures)
sudo systemctl restart dnsmasq

Router-Level DNS Fixes

When multiple devices on your local network simultaneously report DNS server timeouts, the issue lies at the router level. The router's built-in DNS forwarder cache may be frozen, or the ISP-provided WAN gateway DNS resolvers may be down. Configuring manual DNS on your router fixes this for all connected devices.

Follow these generic steps to assign public resolvers router-wide:

  1. Open any web browser and log in to your router gateway panel. Popular default IPs include 192.168.1.1 (ASUS, Netgear, Linksys), 192.168.0.1 (TP-Link, D-Link), or 192.168.8.1 (Huawei).
  2. Enter the default administrator credentials (typically found on a label at the back of the physical router device).
  3. Navigate to the **WAN**, **Internet**, or **Advanced Network Settings** menu panel.
  4. Locate the fields labeled **DNS Server**, **DNS Assignment**, or **Name Servers**. Change this setting from Automatic/ISP DNS to **Use These DNS Servers** or **Manual**.
  5. Input Cloudflare's primary (1.1.1.1) and secondary (1.0.0.1) addresses, or Google's primary (8.8.8.8) and secondary (8.8.4.4) servers.
  6. Save changes and reboot your router. This forces your router's DHCP server to lease these optimized public resolvers to all connected devices.

Related DNS Guides

Step-by-Step Diagnostic Resolution Flow

  1. 1

    Flush the Local DNS Resolver Cache

    Clear out stale hostname records from your operating system's local database. On Windows, search for Command Prompt, right-click and select 'Run as Administrator', and execute the command: 'ipconfig /flushdns'. On macOS, open Terminal and run 'sudo killall -HUP mDNSResponder'. This forces the system to drop expired cached IP addresses and request a fresh lookup directly from nameservers during your next web browsing session.

    Expert Tip: Clearing the cache forces your operating system to request fresh network records instead of relying on stale cache files.
  2. 2

    Configure High-Performance Public DNS Servers

    Bypass your Internet Service Provider's default servers, which may be offline. Open your operating system's network adapter settings or your router's administration panel. Switch your IP allocation options from automatic DNS server assignments to manual configuration. Enter Cloudflare's public DNS IP addresses: Primary: '1.1.1.1', Secondary: '1.0.0.1'. Alternatively, configure Google's servers: Primary: '8.8.8.8', Secondary: '8.8.4.4'. Save the configuration.

    Expert Tip: Public DNS servers are updated instantly, have massive cache pools, and avoid ISP logging and tracking blocks.
  3. 3

    Release and Renew Your IP Address Lease

    Force your network interface card (NIC) to re-establish a handshake with your router gateway. Open Command Prompt (Windows) or Terminal (macOS). On Windows, type 'ipconfig /release' and press Enter to drop the current local IP assignment. Next, type 'ipconfig /renew' and press Enter to request a new IP address lease, subnet mask, and default gateway assignment from your router's DHCP server.

  4. 4

    Disable IPv6 Settings on the Adapter

    Open the Control Panel on Windows, navigate to Network and Sharing Center, and select 'Change Adapter Settings'. Right-click your active wireless or ethernet adapter and choose 'Properties'. Scroll down the protocols list and uncheck the box labeled 'Internet Protocol Version 6 (TCP/IPv6)'. Click 'OK' to save. On macOS, go to System Settings > Network > Wi-Fi/Ethernet > Details > TCP/IP, and set Configure IPv6 to 'Link-local only'.

    Expert Tip: Some routers do not map IPv6 DNS routes properly, causing lookup requests to time out before falling back to IPv4.
  5. 5

    Run DNS Diagnostic Commands

    Run diagnostic utilities to isolate the source of the lookup failure. Open your command shell and type 'ping 8.8.8.8'. If the ping succeeds, your physical internet connection is active. Next, type 'nslookup google.com'. If this fails, the problem lies with your DNS resolver. You can test a specific resolver by typing 'nslookup google.com 1.1.1.1' to force the query through Cloudflare's server and verify if it resolves successfully.

  6. 6

    Reset Network Adapter and TCP/IP Stack

    Repair corrupted network protocol configurations at the kernel level. On Windows, open Command Prompt as Administrator and run the command 'netsh winsock reset' to reset the Windows Sockets API catalog. Next, execute 'netsh int ip reset' to reset the TCP/IP stack to its factory default state. Once completed, restart your computer immediately to apply the repairs.

Expert Q&A & Troubleshooting Insights

What does 'DNS Server Not Responding' mean?

This error indicates that your device successfully connected to the local router, but the DNS server (domain name book resolver) is failing to translate web addresses (like google.com) into numeric IP addresses that routing equipment understands. When you type a website name, your computer asks the DNS server for its numeric IP. If the DNS server is offline, overloaded, or experiencing packet loss, your browser times out and displays the 'DNS Server Not Responding' message.

Can an antivirus firewall block DNS lookups?

Yes, active web protection layers or VPN tunnels create custom network adapters. If these adapters freeze or if the firewall blocks outgoing UDP packets on Port 53, your computer will fail to resolve hostnames. Antivirus software packages with built-in network security firewalls can occasionally flag outgoing DNS query traffic as suspicious or misconfigure adapter bindings, dropping outbound UDP packets. Disabling the firewall temporarily is a quick diagnostic check.

Is public DNS safe to use?

Yes. Large public DNS networks like Cloudflare (1.1.1.1) and Google (8.8.8.8) are safe, run advanced security features to block malicious domains, and respect user privacy by erasing logs within 24 hours. Many security-focused DNS providers like Quad9 (9.9.9.9) or ControlD also maintain real-time threat intelligence blocklists, blocking lookups to known malware, phishing, and command-and-control servers at the DNS level before they can reach your system.

What causes DNS servers to go offline or fail?

DNS servers can fail due to server hardware crashes, DDoS attacks, network routing misconfigurations, or database corruption at the ISP level. ISP-provided DNS servers are particularly prone to outages because they do not have the massive global load-balancing infrastructures that providers like Cloudflare or Google maintain. Stale resolver caches or local router firmware memory leaks can also lock up the DNS forwarder process on your router, mimicking an external DNS failure.

How do I fix DNS errors on a Mac?

On macOS, go to System Settings > Network, select your active connection (Wi-Fi or Ethernet), and click on 'Details'. Select the 'DNS' tab, click the '+' button, and enter '1.1.1.1' and '8.8.8.8'. Remove any default ISP DNS IPs. Next, open Terminal and run the command: 'sudo killall -HUP mDNSResponder' to flush the macOS resolver cache. Finally, turn Wi-Fi off and back on to re-establish the connection parameters.

Why does my phone show DNS errors while my laptop works fine?

This issue points to a device-specific configuration problem rather than a general router outage. The phone may have a stale DHCP lease, a mismatched static IP binding, or be attempting to connect to a Private DNS server that is currently offline. Forget and reconnect to the Wi-Fi network on your phone to force a fresh lease, and verify that any Private DNS or VPN settings are disabled in the phone's settings menu.

What is DNS-over-HTTPS (DoH) and can it fix DNS errors?

DNS-over-HTTPS (DoH) is a protocol that encrypts standard DNS queries and wraps them inside common HTTPS traffic on Port 443. This prevents local eavesdropping and ISP traffic interception. While it does not directly fix a broken physical connection, DoH can bypass local DNS blocks, censorship, or DNS hijacking by your local network administrators, ensuring that your query path remains secure and unmanipulated.

Can a bad ethernet cable trigger DNS errors?

Yes. While it sounds like a software problem, hardware packet loss can cause DNS lookups to fail. DNS queries are lightweight UDP packets. If your ethernet cable is damaged, bent, or has broken pins, it can drop outgoing UDP packets. Since UDP does not have built-in retransmission checks like TCP, your operating system will assume the resolver is offline and throw a 'DNS Server Not Responding' error.