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 have Test server with iis 7.5, and i need to create 3 different websites in it. because this is a test server i don't have domain names yet for each site. I know i have option to give each site different port like this:


but i wonder if there is any way that i can "fake" domain name for each websites so testers of the sites can access like it was a real live website with domain name say something like:


my first thought was to "fake" the domains in the Hosts file but hosts file can only accept ip without port so i can do something like:

but not:

any suggesstions?

share|improve this question
up vote 0 down vote accepted

Why don't you create subdomains on your DNS server like

If you don't want to do that, the hostfile option is the way to go. Just add the fake domain name also to the website hostheader and run it on port 80.

share|improve this answer

SUbdomains, or a hosts file that resolves the names manually.

Subdomains - also possibly with your own DNS to a top level domain just for development - is likely the approach most people would take.

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.