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:

website1: fakedomain1.com
website2: fakedomain2.com
website3: fakedomain3.com

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: fakedomain1.com

but not: fakedomain1.com

any suggesstions?


Why don't you create subdomains on your DNS server like test1.yourdomain.com?

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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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