You edited the hosts file to block a website, test a new server, or point a name to a local machine. You saved the file, but the browser still opens the real website, or your test address goes nowhere. When Windows 10 hosts file changes not working ignores your edits, the PAGODA127 RESMI file, its format, or a cache is preventing Windows from using them.
Windows reads the hosts file at C:\Windows\System32\drivers\etc\hosts before asking DNS servers. Each entry must be on its own line, with an IP address, a space or tab, and the host name. Small mistakes, such as a leading # symbol, a hidden .txt extension, or a typo, make Windows ignore the line.
Browsers also cache DNS results, and many now use secure DNS that bypasses the hosts file entirely. Security software can lock or reset the file to protect against hijacking.
Checking the format and clearing caches usually makes changes take effect.
What Might Be Causing It
Hosts entries are ignored for these reasons:
- The file was saved as hosts.txt or in the wrong folder.
- The line is commented out with # or formatted incorrectly.
- Windows or the browser is using cached DNS results.
- The browser uses secure DNS (DNS over HTTPS), bypassing hosts.
Entries only affect the exact name listed; blocking example.com does not block www.example.com unless both are listed.
First Steps to Try
Check the file and its format.
- Open Notepad as administrator, then open C:\Windows\System32\drivers\etc\hosts, choosing “All files” in the Open dialog.
- Make sure each entry looks like 127.0.0.1 example.com, with no # at the start.
- Add separate lines for both example.com and www.example.com if needed.
- Save the file, keeping the name hosts with no extension.
- Open Command Prompt and run ipconfig /flushdns.
If the Problem Continues
Clear browser caches and check protection.
- Close and reopen the browser completely, or restart the PC.
- In Chrome or Edge, turn off “Use secure DNS” in privacy settings to test.
- In Chrome, open chrome://net-internals/#dns and select “Clear host cache.”
- Check that File Explorer shows the file without a .txt extension by turning on file name extensions.
- Check security software for hosts file protection and allow your changes if you trust them.
Protect Your Data First
Keep a backup copy of the original hosts file before editing. Unexpected entries pointing banking or update sites elsewhere can be a sign of malware, so scan the PC if you see entries you did not add.
The Bottom Line
Hosts changes fail when the file is misnamed, entries are formatted wrongly, or caches and secure DNS bypass it. Save it correctly as administrator, flush DNS, clear browser caches, and test with secure DNS off.