0

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

127.0.0.1 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 ?

JdeBP
  • 3,970
  • 17
  • 17
Kubi
  • 101
  • 1
  • 3
  • 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
  • @evan is there any easier way to do this ? though the problem here actually something is blocking the way it is working. – Kubi Oct 11 '10 at 13:46

2 Answers2

1

Have you flushed your DNS cache?

user48838
  • 7,393
  • 2
  • 17
  • 14
0

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 127.0.0.1

If that does not do the trick. make sure your TCP/IP adapter is bound to the 127.0.0.1 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.

Frank
  • 119
  • 3
  • 11