Flush DNS Cache

Page 1 of 2 12 LastLast

  1. Posts : 130
    Microsoft Windows 10 Home 64-bit
       #1

    Flush DNS Cache


    The other day I tried to flush my DNS cache (no particular reason).
    command run as admin: ipconfig/flushdns
    result: Successfully flushed the DNS Resolver Cache.
    but with the command ipconfg/displaydns I still see 139 entries
    the service "DNS Client" is running (set to automatic)
    tried several times with the same result.
    my OS is Windows 10 Home Edition version 1909
    has anyone an idea why and how to remedy this?
      My Computer


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @aliskander,

    aliskander said:
    .
    command run as admin: ipconfig/flushdns
    result: Successfully flushed the DNS Resolver Cache.

    . . . but with the command ipconfg/displaydns I still see 139 entries
    The two commands should actually be . . .

    Code:
    ipconfig /flushdns
    Code:
    ipconfig /displaydns
    hope this helps!
      My Computer


  3. Posts : 130
    Microsoft Windows 10 Home 64-bit
    Thread Starter
       #3

    thanks for the answer but the result is the same.
      My Computer


  4. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #4

    aliskander said:
    thanks for the answer but the result is the same.

    What do you have in your HOSTS file? Display it with Notepad or similar and see if you get the same 139 recs. The HOSTS file becomes part of your active DNS cache.

    "C:\Windows\System32\drivers\etc\hosts"

    Flush DNS Cache-2020-06-06_06h39_51.png
    Last edited by f14tomcat; 06 Jun 2020 at 06:23.
      My Computers


  5. Posts : 130
    Microsoft Windows 10 Home 64-bit
    Thread Starter
       #5

    yes, I do have quite a number of entrie is my hosts file; all pointing at my computer : 127.0.0.1
    and I see these entries reappear in the DNS cache but alse other entries NOT in the hosts file with
    entries pointing to existing websites.
    these are not flushed by the command ipconfig /flushdns
    Should I delete all entries in the hosts file, flush dns and then rewrite the hosts file?
      My Computer


  6. Posts : 6,850
    22H2 64 Bit Pro
       #6

    Personally I disable the service using Autoruns before rebooting and flushing then re-enable the service.

    Flush DNS Cache-autoruns.jpg

    Or else I use Hostsman:


    Flush DNS Cache-hostsman.jpg
      My Computer


  7. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #7

    aliskander said:
    yes, I do have quite a number of entrie is my hosts file; all pointing at my computer : 127.0.0.1
    and I see these entries reappear in the DNS cache but alse other entries NOT in the hosts file with
    entries pointing to existing websites.
    these are not flushed by the command ipconfig /flushdns
    Should I delete all entries in the hosts file, flush dns and then rewrite the hosts file?
    No, that wouldn't accomplish anything. The entries that are coming back seem to be persistent entries, so as soon as you flush them they come back from some process using the web. Like Callender is saying, those autoruns may likely be starting processes that periodically go out to the 'net. It would be very rare for the cache to be totally empty. As a test, you could disable your LAN card for a bit, run the flushdns, and check it.

    Keep in mind you really do not have a problem, you're just messing around with, per post #1. Be careful and don't break something.
      My Computers


  8. Posts : 130
    Microsoft Windows 10 Home 64-bit
    Thread Starter
       #8

    thanks for all the help.
    I suppose I leave it as it is.
    much appreciated
      My Computer


  9. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #9

    aliskander said:
    thanks for all the help.
    I suppose I leave it as it is.
    much appreciated
    You're welcome.
      My Computers


  10. Posts : 6,850
    22H2 64 Bit Pro
       #10

    New:

    DNS Cache Viewer (DCV)

    The purpose of DCV is to allow you to view what Windows has in it's local DNS Cache, and allow you to flush it if you want.

    Virus Total Report:

    Flush DNS Cache-sigcheckgui.jpg

    For me:
    Flush DNS Cache-dns-cache-viewer-v1.2-windows-10-64-bit-.jpg

    After flush (without manually disabling or stopping the service)
    Flush DNS Cache-dns-cache-viewer-v1.2-flush.jpg

    Most of those cached entries are contained in HOSTS file. (27642 after excluding the first 5 lines)
    Flush DNS Cache-hostsman-editor.jpg
    Last edited by Callender; 08 Jun 2020 at 16:58. Reason: add virustotal report
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:45.
Find Us




Windows 10 Forums