Can I create DNS aliases for two different web sites on the same IIS server?

Running Windows 2008 Ent. R2.. Hosting two different websites, one test and one production.  Currently I have a DNS aliases on our MS DNS server that points all requests for "Test" to "http://<servername".  We will now have the full production site available on a different port, and I was wondering if it's possible to add another alias based on the port number so that employees can just type in "server/test" or "server/prod".......??  Thanks.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

with IIS, you use BINDINGS to distinguish multiple websites hosted on the same server.

For example, you could have the following: -

Website name: test.internal
* IP -
* Binding: test.internal

Website name: production.internal
* IP -
* Binding: production.internal

Two website, one IP address.

Are you able to create a Service record (SRV record) in your DNS ?

if you use a different port, you type http://server:port1/    or   http://server:port2/

or you can use 2 folders : the normal site at the root  and the test site in a test folder ...

http://server/  => normal site
http://server/test   => test site

Finally you can use the same ip with different names : In that case you need a proxy on the server (called reverse proxy in that case)

tenoverAuthor Commented:
Thanks.  I see where to set the bindings in IIS.  Currently there are two websites.  One called "test" and the other "production".  Is it as easy as just typing in a name for the bindings or does each name have to be something in particular?  Does the binding have to include the server name and/or domain name?
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

bindings can be anything you like.

the only caveat is that the name you use in bindings, has to exist in DNS as well.

so on your primary DNS server, you would create two A records as follows: -

Name: test
IP: {IP Address}

Name: production
IP: {IP Address}

Once set up in DNS, you can then configure your bindings and your website is good go.

BTW - you could also create 'C NAME ' DNS records which you would point to your web server.  Either option will work.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tenoverAuthor Commented:
Thanks.  So in your example above, the IP address in DNS for BOTH A records would be the same IP address, correct?
That's right.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.