9
1
When i make changes to the hosts file in windows 8, it doesn't work. Although my changes stay in the hosts file.
What I'm trying to, is to redirect the domain name riddergarn.dev to 127.0.0.1 with this line:
127.0.0.1 riddergarn.dev
I use avast! and Windows Defender is disabled, so that's not causing the problem.
I have tried ipconfig /flushdns
in CMD, but it doesn't solve it either.
I have tried searching for the answer on various sites, but with no luck so far. Maybe someone could help me out.
EDIT: Disabling avast! did not not solve the problem.
My hosts
file (example.com doesn't resolve to 127.0.0.1 either):
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
# ::1 localhost
127.0.0.1 riddergarn.dev
127.0.0.1 example.com
My %SYSTEMROOT% is C:\Windows
I don't use IIS, but Apache instead.
When I try to ping the domain I get the following:
C:\Users\Andreas>ping riddergarn.dev
Ping request could not find host riddergarn.dev. Please check the name and try a
gain.
If you are using Notepad++, When saving your changes make sure Files are not saved to SysWOW64. For further information refer to https://superuser.com/questions/617449/why-is-the-system32-drivers-etc-folder-not-displayed-in-notepad-when-opened-as
– AEonAX – 2017-03-27T08:34:17.873