Hi,
I have tried to move the hosts file location by changing the registry key
■HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath
to the desired folder location.
However, it appears that this key is somehow ignored by my system (Windows 7 64 bit) and the default location %SystemRoot%\system32\drivers\etc is still the one where the hosts file is read.
I notice it because any changes made to the hosts file in the default location are detected (I check it with the ping command) and any changes to the new location are simply ignored.
I have copied and pasted the hosts file with different values between the default and new folder, so I guess it is not a problem with the hosts file having the wrong format. I also copied and paste the new folder path to the registry key so it is also not a problem of having misspelled the folder path, either. I also restarted the computer after changing the registry key.
Any ideas of what could be the problem? Thanks in advance for the help!
I have tried to move the hosts file location by changing the registry key
■HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath
to the desired folder location.
However, it appears that this key is somehow ignored by my system (Windows 7 64 bit) and the default location %SystemRoot%\system32\drivers\etc is still the one where the hosts file is read.
I notice it because any changes made to the hosts file in the default location are detected (I check it with the ping command) and any changes to the new location are simply ignored.
I have copied and pasted the hosts file with different values between the default and new folder, so I guess it is not a problem with the hosts file having the wrong format. I also copied and paste the new folder path to the registry key so it is also not a problem of having misspelled the folder path, either. I also restarted the computer after changing the registry key.
Any ideas of what could be the problem? Thanks in advance for the help!