• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

DNS Resolver Cache - Flush and Reset in Windows


Brink

Administrator
Administrator
mvp
Posts
23,574
DNS Resolver Cache - Flush and Reset in Windows
This tutorial will show you how to flush and reset the contents of the DNS (Domain Name System) client resolver cache when troubleshooting DNS name resolution problems in Windows.
Published by Brink
#1
Category:
ByLine
How to Flush and Reset the DNS Resolver Cache in Windows
Synopsis
This tutorial will show you how to flush and reset the contents of the DNS (Domain Name System) client resolver cache when troubleshooting DNS name resolution problems in Windows.
How to Flush and Reset the DNS Resolver Cache in Windows

information   Information
When you type a web address into your web browser and press ENTER, you are sending a query to a DNS server. If the query is successful, the website you want opens; if not, you'll see an error message. A record of these successful and unsuccessful queries is stored in a temporary storage location on your computer called the DNS cache. DNS always checks the cache before querying any DNS server, and if a record is found that matches the query, DNS uses that record instead of querying the server. This makes queries faster and decreases network and Internet traffic.

Clearing the DNS cache to discard negative cache entries from the cache, as well as any other dynamically added entries, forces DNS to query a DNS server rather than using information stored in the cache. You might want to clear the DNS cache if you are moving and changing websites, or if you are receiving repeated errors when you know the web address you are typing is correct.


This tutorial will show you how to flush and reset the contents of the DNS (Domain Name System) client resolver cache when troubleshooting DNS name resolution problems in Windows.

You must be signed in as an administrator to be able to do the steps in this tutorial.

Note   Note
Resetting the DNS cache does not eliminate entries that are preloaded from the local Hosts file. To eliminate those entries from the cache, remove them from this file.





OPTION ONE
Automatically Flush and Reset DNS Resolver Cache with a VBS File

1. Click/tap on the download button below to download the file below.​
Flush_and_Reset_DNS_cache.vbs
download
2. Save the .vbs file to your desktop, and run it.​
3. If prompted, click/tap on Open and Yes (UAC).​
NOTE: If you like, you can stop getting the Open prompt by unblocking the .vbs file.​
4. You will now see command prompts quickly open and close as it flushes and resets the DNS cache.​
5. When it's finished, you can press any key or close the command prompt.​
Flush_and_Reset_DNS.jpg




OPTION TWO
Manually Flush and Reset DNS Resolver Cache in Command Prompt

2. In the elevated command prompt, copy and paste the command below and press Enter. (see screenshot below)​
ipconfig /flushdns
3. If successful, you will recieve the following message.​
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
4. In the elevated command prompt, type the command below, and press Enter.​
net stop dnscache
5. When the command above finishes, type the command below, and press Enter.​
net start dnscache
6. When finished, you can close the elevated command prompt if you like.​
Flush_and_Reset_DNS_Command.jpg

That's it,
Shawn


 
Last edited:

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone