Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question
    
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

2 Answers 2

Have you flushed your DNS cache?

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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