Ah so you want a staging server. Here is what you need to do.
1 IP
2 DNS entries
2 Sites directories
2 Sites in IIS with unique bindings.
HOW TO:
1. Create a Forward lookup zone.
DNS Manager
Right click on mainsite.com under Forward Lookup Zones
Click New Domain...
Type "test"
Right click on the domain folder "test"
Click new Host...
Name = www IP is where you want it to be sent too.
2. Create a new WebSite in IIS.
3. Add the
www.staging.domain.com DNS to the Binding.
1. Go to IIS Manager
2. Select your “Web Site” on the left pane.
3. In the "Actions" pane on right hand side, click on "Bindings..."
4. Click ADD.
* You may have 1 binding depending on your urls already.
change
a) Type (http) - host Name () - Port (80) - IP address (*)
to
a) Type (http) - host Name (
www.staging.domain.com) - Port (80) - IP address (*)
4. Reconfigure main site.
1. Go to IIS Manager
2. Select your “Web Site” on the left pane.
3. In the "Actions" pane on right hand side, click on "Bindings..."
4. Click ADD.
* You may have 1 binding depending on your urls already.
change
a) Type (http) - host Name () - Port (80) - IP address (*)
to
a) Type (http) - host Name (
www.domain.com) - Port (80) - IP address (*)
NOTE: for bindings, you only want 1 listed and no wildcards.
Cheers,
Hades666