DNS_ERROR_RECORD_TIMED_OUT (0X000025E9) Fix: DnsRecordSetTimedOut
DNS record timed out errors happen when the DNS cache can't refresh a record. I'll walk you through the three most common causes and their fixes.
1. Stale or Corrupted DNS Cache (Most Common Cause)
This error hits you right when you're trying to access a website or update a DNS record, and your machine's local DNS cache still holds onto an old, expired entry. The resolver tries to refresh it, but the authoritative server doesn't respond in time, and boom—0X000025E9. I've seen this on Windows 10 and 11 machines more times than I can count, especially after a router reboot or ISP-side DNS change.
The fix is simple: flush the DNS cache and reset the Winsock catalog. Here's exactly what to do:
- Open Command Prompt as administrator. Hit Win+X, then select Windows Terminal (Admin) or Command Prompt (Admin).
- Run these commands one at a time, pressing Enter after each:
ipconfig /flushdns
ipconfig /registerdns
ipconfig /release
ipconfig /renew
netsh winsock reset
netsh int ip reset
After the last command, reboot your machine. This clears every stale record, forces your PC to re-register with the DNS server, and resets your network stack. I'd say this resolves the error in about 70% of cases.
Real-world example: A client I helped last week got this error when trying to access their company's internal SharePoint site after a VPN reconnection. After flushing the cache, it worked instantly.
2. DNS Server Timeout or Misconfiguration (Second Most Common)
If the flush didn't fix it, the problem's likely on the DNS server side. This error often pops up when your DNS server—whether it's your router, a public DNS like Google (8.8.8.8), or a corporate AD server—takes too long to respond. The resolver gives up after the default timeout (usually 5 seconds on Windows).
I've seen this happen when the server's overloaded, misconfigured, or when your network has a high latency. Here's how to track it down and fix it:
Step 1: Check your current DNS servers
Open Command Prompt and run:
nslookup google.com 8.8.8.8
If this works but your normal DNS fails, you're dealing with a slow or broken server. Swap to Google DNS or Cloudflare (1.1.1.1) in your network adapter settings:
- Go to Control Panel > Network and Sharing Center > Change adapter settings.
- Right-click your active adapter, select Properties.
- Double-click Internet Protocol Version 4 (TCP/IPv4).
- Select Use the following DNS server addresses and enter:
- Preferred:
8.8.8.8 - Alternate:
8.8.4.4 - Click OK, then close all dialogs.
If you're on a corporate network, talk to your IT team—they might need to increase the default query timeout or reduce latency. On Windows Server, you can adjust the RecursionTimeout registry value under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters. Set it to 8 (seconds) instead of the default 5.
3. Expired TTL and Zone Transfer Issues (Less Common)
This one's trickier. The error can also arise when a DNS record's Time-To-Live (TTL) expires and the authoritative server fails to refresh it before the resolver's timer runs out. In Active Directory environments, I've seen this happen after a domain controller change or a zone transfer failure.
You'll see it more often with dynamic DNS updates—like when a DHCP client's record times out because the update didn't propagate in time. Here's what to check:
Verify zone transfers and primary server status
If you're a DNS admin, run this from a command prompt on the DNS server:
dnscmd / ZoneInfo [zone name]
Replace [zone name] with your actual domain (e.g., contoso.com). Look for the Primary server entry. If it's pointing to an offline or slow server, that's your culprit.
You can also increase the TTL for the problematic record temporarily. Use the DNS Manager MMC snap-in, find the record, right-click > Properties, and set TTL to a higher value, like 3600 seconds (1 hour) instead of the default 300 seconds. This gives the resolver more time to complete the refresh.
For dynamic updates, ensure the DHCP server is configured to register records with the DNS server. On the DHCP server, open DHCP Manager, right-click the scope > Properties > DNS tab, and check Enable DNS dynamic updates according to the settings below. Make sure both Dynamically update DNS records only if requested by the DHCP clients and Discard A and PTR records when lease is deleted are set appropriately.
Quick-Reference Summary Table
| Cause | Likelihood | Fix | Time to Fix |
|---|---|---|---|
| Stale or corrupted DNS cache | Very common | Flush DNS cache, reset Winsock and IP stack | 5 minutes |
| DNS server timeout or misconfiguration | Common | Switch to a faster DNS server (Google/Cloudflare) or increase recursion timeout | 10 minutes |
| Expired TTL or failed zone transfer | Less common | Increase TTL, verify zone transfers, fix DHCP dynamic updates | 15-30 minutes |
Was this solution helpful?