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

Shared IP address for multiple domains with IIS

I have four www domains
eg www.one.com
www.two.net
www.three.org
and www.four.edu
I host them all on one server but I have only 1 IP address!
I understand it is possible to set it up so these sites share an IP. I have given each a virtual directory odff the root at say /one  /two  /three etc
What do I put in the DNS entries?
Can the DNS server for this purpose be remote from my machine?
Thank you
0
pharries
Asked:
pharries
  • 5
  • 4
  • 2
1 Solution
 
jhanceCommented:
If you are using IIS4 this can be easily done using "HOST HEADER NAMES".

First, make sure that the DNS records for each of these domains resolves to the same IP address.  This is perfectly acceptable to DNS and is commonly done.  This way, any reference to one of these site will come to the right server.

The DNS server for your sites can be local to your machine or it can be another machine.  It's usually recommended that the primary DNS server for domain names you serve be on the DNS server of your internet service provider. That way, DNS traffic will not clog up your connection as all requests will be handled at the ISP who is closer to the "internet" than you are.

In IIS, create the web site for each of these domains as separate web site.  Then open the properties on each one and bind them all to the same IP address.  Click the Advanced button and fill in the "Multiple Identities" information.  Just put the name of the web site and the port, usually 80.

IIS will then figure out from the browser request which site to serve up.  
0
 
pharriesAuthor Commented:
Very clear
At present I have IIS3, Do I have to go to 4 or can I do it with IIS3?
Thanks
0
 
heathprovostCommented:
IIS3 can do this, but it requires registry modifications....  I would highly suggest upgrading if I were you. There used to be a knowledge base article on how to do this, but for some reason I cant find it now.....?..?  I am just offering some help, jhance has already answered this clearly, so please dont consider this an attempt to answer the question.  His answer is right on.  Even if I could find the article on the registry hacks needed to make IIS3 work, I would still suggest upgrading, as MS officially considers II3 a dead product...  Maybe that is why the KB article has gone the way of the dinasour, hehe

Heath
0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 
jhanceCommented:
I'd recommend that you not try this under IIS3.  It's only semi-supported as heathprovost says and I was never able to get it to work reliably.

The update to IIS4 is free and recommended.  There are quite a number of security issues with IIS3 that are not fixed except by going to IIS4.
0
 
pharriesAuthor Commented:
Ok I can get it to  work on the server and a networked workstation but page not found on attempting to see the page over the net!
0
 
jhanceCommented:
Please explain!  What's the difference between "a networked workstation" and "see the page over the net"???  

Sounds like two descriptions of the same thing.


0
 
heathprovostCommented:
You are running a REGISTERED DNS server yes?  It can take as long a 48 hrs for any changes made to your DNS server to be passed along to the rest of the world.  That is probably what the issue is.

Heath
0
 
pharriesAuthor Commented:
jhance
One PC is sitting on the LAN
Another is a remote PC connected via the internet
0
 
jhanceCommented:
Then the problem must be in the router at your site or beyond.  The server doesn't (or at least shouldn't) know the difference between a remote client and a local LAN client unless you've setup security provisions on the server to prevent access.

Maybe some information about the network setup you are working with would be useful.
0
 
pharriesAuthor Commented:
I have it sorted now.
I think it has to do with having 2 seperate network cards and getting both noticed
0
 
jhanceCommented:
Just a "minor" detail!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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