What Is the DNS Cache?
When you enter a web address and press Enter, your browser sends a DNS query. If it succeeds, the website opens; otherwise, an error appears. Successful and failed queries are stored temporarily in your computer's DNS cache. DNS checks this cache before querying the server and reuses matching records. This speeds up lookups and reduces traffic, but cached information can prevent recent website changes from appearing.
Why Can the DNS Cache Cause Access Problems?
When your computer connects to the internet, it keeps the DNS information it receives in memory for a while and does not query the same address again. If a website changes its DNS records or server, or a cached record becomes invalid, the computer keeps using the old record and the site may not open. Clearing the DNS cache with the steps below makes the computer query the current record again.
How to Clear the DNS Cache
The DNS cache can be cleared through the command prompt or terminal on different operating systems, though the steps and commands vary.
● Flush DNS in Windows
Flushing DNS on Windows:
Windows 10, 8 and 8.1Right-click the Start button, the Windows logo at the bottom left.
Open Command Prompt, or
CMDas an administrator.
Select Yes when asked whether Command Prompt may make changes to your computer.
“ipconfig /flushdns” and press Enter.
“ipconfig /registerdns” and press Enter.
“ipconfig /release” and press Enter.
“ipconfig /renew” and press Enter.
“netsh winsock reset” and press Enter.
Restart the computer.
Windows 7Right-click the Start button, the Windows logo at the bottom left.
Open Command Prompt, or
CMDas an administrator.
Select Yes when asked whether Command Prompt may make changes to your computer.
Note: If administrator login is required, contact your system administrator.
“ipconfig /flushdns” and press Enter.
“ipconfig /registerdns” and press Enter.
“ipconfig /release” and press Enter.
“ipconfig /renew” and press Enter.
“netsh winsock reset” and press Enter.
Restart the computer.
XP and VistaClose all browser windows.
Open Command Prompt, or
CMDas an administrator.
Enter this in Command Prompt: ipconfig /flushdns
If successful, you will see “Successfully flushed the DNS Resolver Cache”.
If you see “The requested operation requires elevation”, contact your computer's administrator to complete these steps.
Mac OS XClose all browser windows.
Open Applications > Utilities > Terminal.
In Terminal, enter the appropriate command for your Mac OS X version:
OS X 10.10 (Yosemite): sudo discoveryutil mdnsflushcache
OS X 10.7–10.9 (Mavericks, Mountain Lion and Lion): sudo killall -HUP mDNSResponder
OS X 10.6 and earlier: sudo dscacheutil -flushcache
Press Enter again. The DNS cache should now be cleared.
Additional StepsIf these steps do not resolve the issue and you are on a home network,
Shut down your computer.
Turn off the modem and router, if present, then wait about 15 seconds.
Plug in the modem and wait 1–2 minutes.
Plug in the router, if present, and wait 1–2 minutes.
Turn on your computer.


