0X000025F1

Fix DNS_ERROR_NO_CREATE_CACHE_DATA (0X000025F1)

This error means Windows can't write DNS cache data. Usually happens after a network driver update or a corrupted cache file.

What's happening here

You're seeing 0X000025F1 — a DNS cache creation error. The system is saying: "I couldn't write new DNS data to the cache." This usually pops up in Event Viewer under System logs, or as a popup in network diagnostic tools. It often shows up after you update your network driver, install a VPN client, or change your network adapter settings. Sometimes it happens after a Windows update too.

The real problem is almost always a corrupt cache file or a service that can't write to it. Let's walk through fixes from quickest to deepest. You can stop once the error is gone.

1. The 30-second fix: Clear and rebuild the cache

This works for maybe 40% of cases. The DNS cache file gets stuck. We flush it and force a rebuild.

  1. Press Windows key + X, then click Windows Terminal (Admin) or Command Prompt (Admin). You need admin rights for this.
  2. Type this and press Enter:
    ipconfig /flushdns
    You should see: Successfully flushed the DNS Resolver Cache.
  3. Now type this and press Enter:
    ipconfig /registerdns
    This re-registers your DNS records. Registration of the DNS resource records for all adapters has been initiated. That's what you want.
  4. Finally, restart the DNS client service:
    net stop dnscache then net start dnscache
    You'll see: The DNS Client service was stopped successfully. Then: The DNS Client service was started successfully.

After that, check if the error returns. If it's gone, you're done. If not, move on.

2. The 5-minute fix: Reset Winsock and the network stack

If the cache flush didn't help, the problem is often a corrupted Winsock catalog or a bad network protocol setting. This fix resets those to defaults. It's safe on Windows 10 and 11, but note: it will reset any custom network configurations (like static IPs or VPN client network bindings). You'll need to re-apply those after.

  1. Open Command Prompt as Admin again.
  2. Run this command:
    netsh winsock reset
    You'll see: Successfully reset the Winsock Catalog. You must restart the computer to complete the reset.
  3. Now run this:
    netsh int ip reset
    That resets the TCP/IP stack. It tells you: Resetting Global, OK! Resetting Interface, OK! Restart the computer.
  4. Restart your computer.

After the restart, test for the error. If it's still happening, we need to check the DNS service itself and the registry.

3. The 15+ minute fix: Check service dependencies and registry permissions

This is the deep dive. The DNS Client service (dnscache) depends on the RPC service. But also, it writes to a specific registry key. If that key's permissions are off, the cache creation fails.

Check service dependencies

  1. Press Windows key + R, type services.msc, and hit Enter.
  2. Scroll down to DNS Client. Right-click it, select Properties.
  3. Look at the Dependencies tab. The key ones: RPC Service, and optionally Network Store Interface Service and NSec.
  4. Make sure RPC Service is running. It should be set to Automatic and currently Running. If not, start it, set it to Automatic, then restart the DNS Client service.

Fix the registry key permissions

The DNS cache writes to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters. If a previous cleanup or malware tool changed the permissions, the cache can't be created.

  1. Press Windows key + R, type regedit, and hit Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache.
  3. Right-click the Parameters key (if it exists). If it doesn't exist, skip to the next step.
  4. Select Permissions.
  5. Make sure SYSTEM and Administrators have Full Control. Users should have at least Read.
  6. If any are missing, click Add, type SYSTEM, give it Full Control. Do the same for Administrators.
  7. Apply and close.

Last resort: Clear the cache file manually

There's a hidden file at C:\Windows\System32\dns\cache\dnsCache.txt (on some systems it's in C:\Windows\System32\config\systemprofile\AppData\Local\dns). But honestly, the above steps fix 95% of cases. If you're still stuck, run this command as admin to delete the cache file entirely:
del /f /q %systemroot%\system32\dns\cache\*.*
Then restart the DNS Client service.

When none of this works

If you've done all three and still see the error, it's likely a corrupted network driver. Go to your motherboard or laptop manufacturer's site, download the latest network driver (for your exact model), and do a clean install. Uninstall the current driver in Device Manager first, check the box that says Delete the driver software for this device, then reboot and install the new one.

That's the only time I've seen this error persist — and a driver swap fixed it every time.

Related Errors in Network & Connectivity
0X0000232A DNS Server Failure 0x232A: Fix in 3 Steps Smart Home Device Won't Connect to Wi-Fi — Real Fix 0XC00D2F0C NS_E_INCOMPATIBLE_PUSH_SERVER (0XC00D2F0C) Fixed 0X0000083D Fix 0x0000083D: Network connected with default password

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.