User Agents

Web browsers and everyday web tech, explained

DNS Error: Unknown Node or Service: Causes and Fixes

· 5 min read · How the Web Works

In this article
  1. Fix It in Six Steps, Fastest Checks First
  2. Work Out Which of the Three Usual Causes You Have
  3. When the Name Itself Is the Problem
  4. When Your Device or Network Is the Problem
  5. Checking the Result and What to Do If It Persists

A "DNS error: unknown node or service" message means your device asked a DNS server to turn a name (like example.com) into an address and got no answer back. The fix in most cases is to check the spelling of the name, then flush your DNS cache and switch to a public DNS server such as Google DNS or Cloudflare.

Time 10 min · Steps 6 · Level Easy

Fix It in Six Steps, Fastest Checks First

  1. Retype the name. A single typo, a space before the dot, or a missing subdomain produces exactly this error. Compare character by character with the address you meant to reach.
  2. Test another site. Open two or three well-known sites in the same browser. If they load, the problem is that one name; if nothing loads, your whole DNS path is broken and steps 3-6 apply.
  3. Flush the local DNS cache. On Windows, open Command Prompt and run ipconfig /flushdns. On macOS, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. On Linux, run sudo resolvectl flush-caches or restart the resolver service, depending on your distribution.
  4. Restart the router. Unplug it, wait about 30 seconds, plug it back in and wait for the lights to settle. Home routers cache DNS too, and a restart clears theirs.
  5. Change your DNS server. In your device's network settings, replace the automatic DNS with a public one: Google at 8.8.8.8 and 8.8.4.4, or Cloudflare at 1.1.1.1 and 1.0.0.1. This bypasses an ISP resolver that is down or blocking the name.
  6. Test the name directly. Run nslookup example.com 8.8.8.8 (Windows) or dig example.com @8.8.8.8 (macOS and Linux). If this works but normal browsing fails, the fault is your configured DNS server, not the name itself.

Work Out Which of the Three Usual Causes You Have

The error comes down to one of three things: the name itself is wrong or no longer exists, your device or network cannot reach a working DNS server, or the record for that name is genuinely missing on the server that should hold it. You can separate them in under two minutes with one test each.

First, test spelling and existence: try the name in a different browser and on a different device, and try it on a phone using mobile data instead of Wi-Fi. If it fails only on one device, the problem is that device's cache or settings. If it fails only on your Wi-Fi, the problem is your router or ISP resolver. If it fails everywhere, on every network, the name itself is the likely issue.

Second, test your resolver: run nslookup example.com with no server specified. The first lines of the reply show which DNS server answered. If the reply times out or the server address looks like your router's internal address (often something like 192.168.1.1), your resolver path is the suspect.

Third, test the record: query a public resolver directly as in step 6. A reply of "NXDOMAIN" or "Non-existent domain" from a public resolver means the name truly has no record right now, and nothing on your end will fix it.

When the Name Itself Is the Problem

If a public resolver returns NXDOMAIN, the domain is not registered, has expired, or its records were removed. Confirm it by searching the name in a browser; if the whole site is unreachable for everyone, you will usually find the service's status or social page mentioning an outage. Internal names behave differently: an address like printer.local or server01.office.internal only resolves inside the network that owns it. From home, or from a phone on mobile data, that name will always fail, and that is expected rather than a fault.

Also check the prefix. A service may live at mail.example.com while example.com alone serves a different page, so a missing or wrong subdomain gives the unknown-node error even though the domain exists. And if you typed a bare hostname without any dot, such as server01, most resolvers will not treat it as a full internet address; try the fully qualified name with the domain attached.

When Your Device or Network Is the Problem

Cache and resolver faults are the most common cause and the easiest to fix. After flushing the cache as in step 3, check that your network adapter is using a DNS server you can reach: on Windows, look in Settings > Network & Internet, then your connection's DNS server assignment; on macOS, in System Settings > Network, then the connection's DNS field. Labels and paths can differ slightly by system version. If the field is empty or points only at your router, enter a public resolver manually.

A VPN or security software can also intercept DNS and fail quietly. Disconnect the VPN and test again; if browsing works without it, the VPN's DNS settings are the culprit, and its own settings usually let you choose a DNS server. Similarly, a browser extension or the browser's own secure-DNS setting can override your system resolver, so test in a private window with extensions off, and check the browser's connection or privacy settings for a "use secure DNS" option.

On Linux systems, a misconfigured /etc/resolv.conf or a stopped resolver service produces this error for every name. Check that the file lists a reachable nameserver, and restart the resolver or network manager service. On a server you administer, the same error from a DNS tool usually means the zone file lacks a record for that host, so the fix belongs on the DNS server, not the client.

Checking the Result and What to Do If It Persists

After each change, retest with the same command so you are comparing like with like: nslookup example.com should return an address rather than an error, and the site should load in a normal browser window. If you have flushed caches, restarted the router, and set a public resolver and the error still appears for every site, the fault is likely with your ISP's line rather than DNS; contact them and report that name resolution is failing for all domains. If it fails for one name only, and a public resolver confirms NXDOMAIN, wait and retry later, since expired or misconfigured records on the far end are often fixed by the domain's owner within hours.

Official source: Google Android Help