the following line in hosts file in windows/system32/drivers/etc/hosts doesnt work gotomylocal.com

I'm using Windows Server 2008, I'm new and configured Windows Server 2008 unconsciously so there might me something like roles or features blocking it.

any idea how can I do that ?

  • What does gotomylocal.com resolve to when you ping it? Did you try ipconfig /flushdns ? – Kyle Buser Oct 11 '10 at 13:23
  • 2
    Please rewrite this question to make some actual sense. – Chopper3 Oct 11 '10 at 13:25
  • Better still -- don't use HOSTS files. It's 2010... come on... – Evan Anderson Oct 11 '10 at 13:29
  • 2
    configured Windows Server 2008 unconsciously - clearly. – mfinni Oct 11 '10 at 13:36
  • @kyle that didnt work either, ok i edited question for those who doesn't understand easily :P there should be something, modules or sthg blocking this. I just installed Windows Server 2008 R2 and add some features and roles. – Kubi Oct 11 '10 at 13:41

Have you flushed your DNS cache?


I think you have to flush your dns cache. CMD - Ipconfig -flushdns

then do a CMD ping to the domain name. Should come up as

If that does not do the trick. make sure your TCP/IP adapter is bound to the ip (it should always be).

If your ping is working fine, then I am assuming you are using a Hosts entry for web development, make sure your IIS Site has host headers for the domain name you placed in your hosts file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.