• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 350
  • Last Modified:

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.
0
tenover
Asked:
tenover
  • 3
  • 2
1 Solution
 
jakethecatukCommented:
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 - 192.168.1.1
* Binding: test.internal

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

Two website, one IP address.

0
 
tcremelCommented:
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)

0
 
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?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
jakethecatukCommented:
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.
0
 
tenoverAuthor Commented:
Thanks.  So in your example above, the IP address in DNS for BOTH A records would be the same IP address, correct?
0
 
jakethecatukCommented:
That's right.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now