Multiple web sites with different ip addresses

hostingiis-7intranet

I want to set up more than one web site on IIS7 with each website having it's own IP address.

This is so that I can set up different domain names within an intranet to point to different web sites. Does anyone know of a way to do this?

If this is not possible, or if there is a better way, do let me know.

My first attempt using a different method involved making the host names within IIS different and then editing the HOSTS file appropriately. This enabled me to navigate to multiple websites on the host machine. However, I could not do the same from other machines on the network.

Best Answer

If there's a reason for you NOT to do it the way I'm about to suggest please let me know and I can adjust my advice. However...

On your IIS box set up all your webs using host headers, they can all be the same IP address. Then in your DNS make sure your internal view resolves all of those domains to that IP. Use DNS internally, not the hosts file - that should solve your problem.