
If it does, your hosts file is fine and the issue is elsewhere. Try to ping localhost and see if it uses the correct IP (it should match what you put in the hosts file). Your next step should be to fire up a command prompt and type: ipconfig /flushdns to drop the old data. Therefore, the old records may still be used for a while. In spite of that, do keep in mind that Windows caches name resolution data. If the changes are done correctly, you should see the results immediately. Usually, it’s the white space that messes with things since it’s so difficult to notice. Therefore, changing the line endings to Windows format could make a difference.


How do you get the hosts files to work properly again?Īll changes to hosts should take effect immediately. However, the browser cannot find the host file or the recently made changes simply refuse to take effect. Home › Fix › Host files aren’t working? Check out these proceduresĬhances are you are trying to bind certain name strings to specific IP addresses to override other name resolution methods.
