Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

What the Error Means

Before a browser can load a page, a DNS resolver must turn the domain name into an IP address. When that lookup fails, Chrome can run a short probe to find out why. DNS_PROBE_FINISHED_BAD_CONFIG is the result when the probe concludes that the DNS configuration is wrong, or that the configured DNS servers are down or broken. Every site usually fails at the same time, which is the clearest sign that the cause is local.

How It Differs from NXDOMAIN

With DNS_PROBE_FINISHED_NXDOMAIN, the resolver worked and answered that the name does not exist: a typo, an expired domain, or a missing record. With BAD_CONFIG, no usable answer came back at all. The first can be the site's fault; the second is about the visitor's settings. See DNS_PROBE_FINISHED_NXDOMAIN for the other case.

Generic Steps for Any Device

  1. Restart the router and the modem, then reconnect the device.
  2. Try another network, such as a mobile connection. If sites load there, the router's DNS settings are the problem.
  3. Turn off a VPN, proxy, or DNS filtering software, and test again.
  4. Set the device or router to use a different, well-known public resolver instead of the one it has now.
  5. Clear the DNS cache of the device and of the browser, then restart the browser.
  6. If a static IP was set by hand, check the DNS server addresses entered with it.

On Linux: Check the Resolver

Start with the file every program reads:

cat /etc/resolv.conf

On Ubuntu and other systems that use systemd-resolved, it normally lists only the local stub address 127.0.0.53, and the real upstream resolvers are shown by:

resolvectl status
resolvectl query example.com

An empty list of DNS servers on the active interface, or addresses that do not answer, explains the error. Test a resolver directly:

dig example.com @resolver_ip

A timeout means that resolver is unreachable from this network; a quick answer means the resolver works and the device simply is not using it.

On Linux: Set a Working Resolver

Where the DNS servers come from depends on the system. On Ubuntu servers configured with Netplan, they are the nameservers lines in the YAML file; see how to configure a static IP with Netplan. On systems managed by NetworkManager, set them on the connection with nmcli; see how to set a static IP with nmcli. Avoid editing /etc/resolv.conf by hand on these systems: it is generated and your change is overwritten.

Clear the Cache

systemd-resolved flushes its cache by itself when the network configuration changes. To clear cached failures by hand on these systems:

sudo resolvectl flush-caches

Other caching services have their own command; see how to flush the DNS cache in Linux.

For Site Owners

The website cannot cause this error, but you can confirm your domain is healthy so you can answer the visitor with confidence. From a machine outside your network, ask a public resolver:

dig +short example.com @203.0.113.53
dig +short NS example.com

Replace the address with the public resolver you use. If your domain returns its address and its name servers, the problem is on the visitor's side. Use the dig command for further checks. On your own server, a similar failure appears as temporary failure in name resolution.

Was this answer helpful?
Loading...