How to Easily Fix the DNS_PROBE_FINISHED_NXDOMAIN Error

As an experienced webmaster, I know how frustrating the DNS_PROBE_FINISHED_NXDOMAIN error can be. You type a website address into your browser and instead of the page loading, you get a cryptic error message.

But don‘t worry, this is a common issue that can be easily fixed in most cases by refreshing your DNS and network settings.

In this detailed guide, I‘ll explain what‘s causing the problem and walk you through the steps to get rid of the error quickly based on my 15 years of experience managing websites.

What Is DNS and How Does It Work?

To understand the NXDOMAIN error, we first need to cover some background on DNS.

The Domain Name System (DNS) is like the phonebook of the internet. It translates domain names that humans can understand (like example.com) into IP addresses that computers use to find the right website server.

Your computer doesn‘t connect directly to websites. First, it asks a DNS server to find the website‘s IP address. Then your browser can use this IP address to fetch the web pages.

DNS lookup process

When you type a web address in your browser, here‘s what happens behind the scenes:

  1. Your browser asks your computer‘s operating system to look up the domain‘s IP address
  2. Your OS checks its local DNS cache for any saved records
  3. If not found locally, your computer‘s DNS resolver will query your ISP‘s DNS servers
  4. These DNS servers search registry databases to find the domain‘s IP address
  5. The IP address is returned to your OS and passed to the browser
  6. Your browser can now use the IP to connect to the web server and load the website

This DNS process usually takes milliseconds to complete. But if anything goes wrong along the way, you‘ll get an error indicating the domain could not be found.

What Does the NXDOMAIN Error Mean?

NXDOMAIN stands for "Non-Existent Domain". This error means that the DNS servers checked did not have a record of the domain you tried to access.

Some common examples include:

  • Typing the domain incorrectly in your browser
  • The website domain has expired
  • The domain name was migrated recently
  • There‘s a temporary problem with the website‘s DNS configuration

According to Cloudflare statistics, NXDOMAIN makes up about 5% of all DNS error traffic on average. It‘s one of the most common DNS issues.

The specific error message varies across browsers:

Browser Error Message
Chrome DNS_PROBE_FINISHED_NXDOMAIN
Firefox Server not found
Safari This site can’t be reached
Edge Hmmm…can‘t reach this page

But in all cases, it indicates the browser could not resolve the domain name you entered.

While it may seem like the website is down, the problem is usually with your computer or network connection instead.

Troubleshooting Steps to Fix the NXDOMAIN Error

Here are the steps I recommend to troubleshoot the NXDOMAIN error, starting with the simplest solutions first:

1. Check the domain name

Before going further, verify the domain name you entered is 100% correct. Even a small typo or missing letter will cause an NXDOMAIN error.

Look formixed up letters, misspellings, or incorrect Top Level Domains like .comm instead of .com.

If you clicked on a broken link, there could be a mistake in the URL. Double check that too.

2. Retry loading the page

A quick browser refresh can often fix temporary DNS hiccups:

  • Chrome: Click the refresh icon or press F5
  • Firefox: Click the refresh icon or press Ctrl + R
  • Safari: Click the reload arrow icon or press ⌘ + R
  • Edge: Click the refresh icon or press F5

This forces your browser to re-check the domain‘s DNS records. If it was a fluke error, reloading should load the page.

3. Clear your browser‘s DNS cache

Your browser caches DNS records for sites you visit to speed up subsequent loads. But sometimes these cached records become outdated, causing errors.

Flushing your browser cache resets its DNS and forces lookup of new records:

Chrome

  1. Click the 3-dot menu > Settings > Privacy and security
  2. Under "Clear browsing data", click Advanced
  3. Select "Cached images and files"
  4. Click Clear data

Firefox

  1. Click the 3-line menu > Options
  2. Go to Privacy & Security > Cookies and Site Data
  3. Click "Clear Data"
  4. Check "Cached Web Content"
  5. Click "Clear"

Safari

  1. Click Safari > Clear History and Website Data
  2. Select "Cached files"
  3. Click Clear History

Edge

  1. Click the 3-dot menu > Settings
  2. Click "Choose what to clear" under Clear Browsing Data
  3. Check "Cached images and files"
  4. Click "Clear Now"

4. Flush your DNS cache

Your device also caches DNS records locally for faster lookups. But stale records can cause issues.

To flush your computer‘s DNS cache:

On Windows:

  1. Open Command Prompt as Administrator
  2. Type ipconfig /flushdns
  3. Press Enter

This clears out your local DNS cache.

On Mac:

  1. Open Terminal
  2. Type sudo killall -HUP mDNSResponder
  3. Press Enter

Try the website again after flushing cached DNS records on your system.

5. Reset your network connection

Resetting your network connection forces a refresh of any network-related settings that could be causing DNS lookup problems.

On Windows:

  1. Open Command Prompt as Administrator
  2. Type ipconfig /release and press Enter
  3. Type ipconfig /renew and press Enter

This will release and renew your IP address.

On Mac:

  1. Open Terminal
  2. Type sudo dhclient -r and press Enter
  3. Then type sudo dhclient and press Enter

Your IP will first be released then renewed.

6. Change your DNS servers

By default, your system uses your ISP‘s DNS servers. Switching to third-party public servers like Google or Cloudflare can resolve DNS issues:

Google DNS

  • 8.8.8.8
  • 8.8.4.4

Cloudflare DNS

  • 1.1.1.1
  • 1.0.0.1

To configure alternate DNS servers:

On Windows

  1. Go to Control Panel > Network & Internet > Network Connections
  2. Right click your active network > Properties
  3. Select Internet Protocol Version 4 > Properties
  4. Select "Use the following DNS server addresses"
  5. Enter the public DNS server addresses

On Mac

  1. Go to System Preferences > Network
  2. Select your connection and click Advanced
  3. Go to the DNS tab
  4. Enter the public DNS server addresses

7. Check the hosts file

The hosts file maps domain names to IP addresses locally. If it has incorrect entries, you may get DNS errors.

Verify the website you‘re trying to reach isn‘t incorrectly listed in this file:

On Windows:

  1. Open File Explorer
  2. Go to C:\Windows\System32\drivers\etc
  3. Open the hosts file in Notepad
  4. Look for incorrect domain mappings and remove them

On Mac

  1. Open Terminal
  2. Type sudo nano /etc/hosts
  3. Remove any incorrect entries for the domain
  4. Press Ctrl + X to close and save

This will exclude the domain from incorrect static IP mappings.

8. Contact your ISP

If you‘ve tried all these steps and the NXDOMAIN error persists, there may be bigger network issues beyond your control. Contact your Internet Service Provider for help troubleshooting further.

Problems with their DNS servers, cached records, or infrastructure could be preventing successful DNS resolution. Your ISP can look into any server-side causes and fix them.

Avoiding the Error in the Future

While occasional DNS hiccups are normal, you can take some steps to prevent frequent NXDOMAIN errors:

  • Use a reputable DNS provider: Your ISP‘s DNS servers can sometimes have performance issues or outages. Switch to more reliable providers like Google, Cloudflare, or your domain registrar.

  • Monitor your DNS health: Use a site like DNSPerf to monitor your DNS servers‘ uptime and performance. Switch if you notice frequent failures.

  • Validate DNS changes: Before migrating websites or making big DNS changes, use a DNS propagation checker to validate records have fully updated.

  • Flush caches regularly: Periodically clear your browser and system DNS caches to prevent stale records.

Following the troubleshooting guide above and being proactive about your DNS reliability will help minimize annoying NXDOMAIN errors while browsing.

As a long-time webmaster, I hope you found this page helpful for resolving those frustrating DNS lookup failures. Let me know in the comments if you have any other tips for avoiding NXDOMAIN errors!

Written by Jason Striegel

C/C++, Java, Python, Linux developer for 18 years, A-Tech enthusiast love to share some useful tech hacks.