Clicky

Flushing DNS Cache when Flushdns is Not Working

If dns cache is not flushing with “ipconfig /flushdns” command, you need to:

Step 1. Make host file editable
a. Find your hosts file (%SystemRoot%\system32\drivers\etc\hosts)
b. Uncheck the Read Only attribute

Step 2. Edit your hosts file (in this case by using notepad):
a. Open notepad (right click and run as administrator)
b. Open the hosts file with notepad (make sure to change the type search to All files and not just .txt)
c. delete all lines referencing unwanted sites (just leave “127.0.0.1 localhost”)
d. save the file & close it

Step 3. Make host file Read Only again
a. Find your hosts file (%SystemRoot%\system32\drivers\etc\hosts)
b. Check the Read Only attribute

Step 4. Flush the dns
a. Run command prompt as administrator to avoid elevation error (right click)
b. at C:\Windows\System32> type “ipconfig /flushdns” (space between “ipconfig” and / sign

Step 5. Double check it worked
a. type “ipconfig /displaydns” (it should only show the localhost and no unwanted websites)
b. Close the command prompt
c. ALL DONE!!!