Solved

C:\WINDOWS\system32\drivers\etc\hosts redirecting not working

Posted on 2004-09-15
2
1,879 Views
Last Modified: 2011-10-03
I need to use C:\WINDOWS\system32\drivers\etc\hosts to redirect hostnames to another IP but for some reason it's not working for me. On another computer on the same network it does work but not on mine. Is there any way that the redirecting could be disabled or not working? Does anyone know how i can fix this?
THX
0
Comment
Question by:neushoorn
2 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 125 total points
ID: 12068872
Assuming W2k or XP, open a command prompt and enter
ipconfig /flushdns
followed by
ipconfig /displaydns
In the second command, the entries you specified in the hosts file should be displayed.
If that is not the case, start regedit. Go to HKLM\System\CurrentControlSet\Services\Tcpip\Parameters; check the REG_EXPAND_SZ value "DataBasePath", which should be set to %Systemroot%\system32\drivers\etc. If it isn't, set it back, and do a thorough scan for spyware, as this is basically the only piece of software that changes this entry.
0
 

Author Comment

by:neushoorn
ID: 12069170
It was the "DataBasePath" vanlue that was changed. I've got everything working now
Thanks
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question