Score:0

Why are my HOSTS file changes not taking effect in Windows 10?

za flag

I made a change to my hosts file on my Windows 10 machine today, however after saving the changes in Notepad (running as admin) the changes do not appear to work.

For example I would expect this entry:

127.0.0.1 google.com

To stop a page from resolving to Google.com.

However, this doesn't appear to be happening and the web browser resolves to google.

Is there a cache setting I'm missing?

Thanks

in flag
Are you sure the page uses `google.com` and not `www.google.com`? Entries in hosts file are just for a single domain excluding subdomains.
djdomi avatar
za flag
Does this answer your question? [hosts file ignored, how to troubleshoot?](https://serverfault.com/questions/452268/hosts-file-ignored-how-to-troubleshoot)
Score:3
us flag

You need to flush the DNS cache in Windows 10

Go to cmd and type

ipconfig /flushdns
ping google.com

now you shut return with 127.0.0.1 and restart your browser shut help to

Tikhon avatar
za flag
Thanks. Also cleared browser cache.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.