1. Stale or Corrupted DNS Cache
This is the #1 reason I see this error. Windows caches DNS lookups to speed things up, but that cache gets stale or corrupted all the time. Had a client last month where their entire office couldn't reach a SaaS platform — turned out a cached record pointed to an old IP that no longer existed. A quick ipconfig /flushdns fixed it.
Here's the fix, step by step:
- Open Command Prompt as Administrator (right-click Start, choose Command Prompt (Admin) or Windows Terminal (Admin)).
- Type:
ipconfig /flushdnsand hit Enter. You'll see "Successfully flushed the DNS Resolver Cache." - Optionally, also run:
ipconfig /registerdnsto refresh your own machine's registration with the DNS server. - Test with:
nslookup the-hostname-you-were-using(replace with the actual hostname). If it resolves now, you're done.
If the error persists, the cache wasn't the problem — but it's such an easy step that I always do it first anyway. No risk, high reward.
2. Typo in Hostname or Missing DNS Record
You'd be surprised how often this is just a typo. I once spent 20 minutes debugging a server that "couldn't resolve" a hostname — turns out someone had typed \fileserver instead of \fileserver01. Check your source. Verify the hostname in the command or application that threw the error.
If the hostname is correct, then the DNS record might genuinely be missing. This happens when:
- You're trying to reach a machine that was recently removed from the domain.
- The DNS zone doesn't have a record for that name (maybe it's a new server that wasn't added yet).
- You're using a forwarder or conditional forwarder that doesn't have the record.
To check if the record exists, use nslookup or ping -a. For example:
nslookup fileserver01
ping -a 192.168.1.50
If nslookup returns *** UnKnown can't find fileserver01: Non-existent domain, the record doesn't exist. Have your DNS admin add the A or AAAA record. If you manage your own DNS (like on a small business domain controller), log into the DNS Manager, expand Forward Lookup Zones, right-click your domain, and choose New Host (A or AAAA). Type the name and IP.
3. DNS Server Not Responding or Wrong DNS Server
Sometimes the error isn't about the specific name — it's that your machine can't talk to the DNS server at all. This shows up as a generic "DNS name does not exist" because Windows can't even ask the server for an answer. Common triggers: VPN disconnects, router config changes, or a DNS server that's down.
Check your current DNS servers with:
ipconfig /all | findstr "DNS Servers"
On Windows 10/11, you'll see lines like DNS Servers . . . . . . . . . . : 192.168.1.1. If that IP is wrong or unreachable, you need to fix it. Try pinging the DNS server: ping 192.168.1.1. If it times out, either the server is down or you have a network issue.
To change DNS servers (on a single machine):
- Open Network & Internet settings (right-click the network icon in the system tray, choose Network & Internet settings).
- Click Advanced network settings > More network adapter options.
- Right-click your active connection (Ethernet or Wi-Fi) and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Choose "Use the following DNS server addresses" and enter a reliable DNS like 8.8.8.8 and 8.8.4.4 (Google) or 1.1.1.1 and 1.0.0.1 (Cloudflare).
- Click OK, then close all windows, and test again.
If you're on a domain, don't change DNS manually — talk to your IT admin. The domain DNS servers are often required for internal name resolution.
4. VPN or Proxy Interference
VPN clients can hijack your DNS settings and send queries to their own DNS servers, which may not have the records you need. I've seen this with Cisco AnyConnect, OpenVPN, and even some consumer VPNs. If the error only appears when the VPN is connected, that's your culprit.
Quick test: disconnect the VPN and try the same hostname. If it works, the VPN DNS is the problem. You can either:
- Configure the VPN client to use your local DNS servers for certain domains (split tunneling).
- Or, if you don't need internal resources while on VPN, disable the VPN's DNS override in the adapter settings.
For proxy users: check if you have a proxy configured under Settings > Network & Internet > Proxy. A misconfigured proxy can also mess with DNS resolution. Temporarily turn off "Use a proxy server" and test.
Quick-Reference Summary Table
| Cause | Fix | Takes |
|---|---|---|
| Stale/corrupted DNS cache | Run ipconfig /flushdns |
1 minute |
| Typo or missing DNS record | Verify hostname; add A/AAAA record | 5–15 minutes |
| DNS server unreachable or wrong | Check ipconfig /all; change DNS server (e.g., 8.8.8.8) |
5 minutes |
| VPN or proxy interference | Disconnect VPN; disable proxy; configure split tunneling | 10 minutes |
If none of these work, you might have a deeper network issue — check your router's DNS settings or call your ISP. But 90% of the time, it's one of the four fixes above.