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.

I have a DNS name pointing to the server where my website is installed. If I ping http://mydnsname, I can see it pings the correct IP. But browsing this URL returns a 404 error. So do I have to do some setting on the server where my website is installed? I have very limited knowledge on DNS and IIS settings. So any help would be appreciated.

Windows Server : Windows Server 2008 Standard

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you have default documents enabled for your site and do indeed have a default document in your document root, then it may just be that you need to add a host name binding to your site.

  1. Click on your site in IIS Manager
  2. Under Edit Site in the right-hand pane click Bindings...
  3. In the Site Bindings window click Add...
  4. Set the Type, IP Address and Port as appropriate, then type mydnsname in the Host name box.
  5. Click Ok, and Ok again.
  6. Try hitting your site again.

It's also possible, if your server has more than one IP address, that your site is not bound to the same IP address that your dns name is resolving to. In that case, check the bindings (same screen as the above steps) and make sure your site is listening (ie- has a binding) on that IP address.

share|improve this answer
    
Awesome. Thanks and it worked. –  Appu Mar 1 '11 at 15:43
    
@Appu Good deal :) Glad it worked! –  squillman Mar 1 '11 at 15:45
    
Thanks for your help. One more question. If I need http://mydnsname to point to a virtual directory inside the website, what should I do? –  Appu Mar 2 '11 at 14:17
    
@Appu That, actually, is a completely different ball game and one I've not been willing to play yet. There was actually a question asked yesterday about that. serverfault.com/questions/241960/… –  squillman Mar 2 '11 at 14:22

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.