Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm very beginner(Comport me!) I have a windows server 2008 with nothing. i must up a ASP.Net site . Now i added a role to server(Web Server) and copied my files to wwwroot. Hitherto everything is OK and i browse my site very well(also when i type the IP in a web-browser, my site is loaded).

Now i want to browse my site with a domain name(like but i don't how to do this!

share|improve this question
up vote 0 down vote accepted

To add to lrosa, once you purchase your domain you'll likely need to purchase an extra add on to be able to manually manage your DNS.

Once you've done that, you can create 2 A records (one blank, one www) that point to your server's IP address.

Ensure your headers are correct in IIS (port 80, and you should be ready to rock and roll.

IF you receive a "Bad Request (Invalid Hostname)" error, there is something wrong with your headers.

EDIT : may be of some assistance to you

share|improve this answer

You have to do this with DNS.

You can do one or more of this:

  • edit %SystemRoot%/system32/drivers/etc/hosts, put ip and name and restart your browser (on WinXP you have to type NBTSTAT -R with CAPITAL R)
  • configure the DNS server you are using and add the zone/host
  • register the name online and wait some hours
share|improve this answer

Your Answer


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.