IIS and multiple domains

JRockFL
JRockFL used Ask the Experts™
on
I have 2 domains that have the same dns servers.
Only 1 web site is setup in IIS, however both domain names will display the web site.

How can I prevent one of the web sites from not working? I do not want the domain to server any pages.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
what version of IIS are you using ?

See below on using host headers, this will ensure you serve a site based on host name.
http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial