Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNS for multiple domains, multiple portals, on one DNNDNS for multiple domains, multiple portals, on one DNN
Previous
 
Next
New Post
9/23/2006 5:30 PM
 
24 Sep 2006 4:45 AM Quote Reply Alert 

It's not really clear to me how to set up IIS and DNS for multiple portals/domains under one DNN installation.

Let's say we have a DNN4 installation on a dedicated server at:

www.domain1.com

and that is the portal host. Let's say it has an IP of 123.45.678.90. So far, so good.

Now, let's say we want to set up a second portal and domain. Let's say the second domain is domain2.com.

In the portal host domain1.com, we'd create a new parent portal with an alias of www.domain2.com.

Now what do we need to do in IIS? Anything? And where does the DNS for domain2 need to point to - 123.45.678.90? Or can domain2 have its own IP?

It is not clear how the additional parent domains are resolved, and what the implications are as far as mx records, etc.

Any insights or pointers to additional documentation would be appreciated.

 
New Post
9/23/2006 6:20 PM
 

This is actually WAY simpler than most folks want to try and make it.  I'll try to stick with your example, you'll be pleasantly surprised by how easy this is.

Setting the stage:

You have a machine which houses IIS.  That machine recieves HTTP requests from some list of IP addresses ( which includes 123.45.678.90, 123.45.678.91 ) through the network.  So far, so good.

You have a website set up in IIS which has an association with a set of IP addresses.  For the purposes of this example, lets say that the site is only associated with 123.45.678.90.  You have DNN installed in that website.  We will assume that the IP association is a wildcard, that is that in the configuration... the site is set to answer all requests to the IP address 123.45.678.90.  I point that out because some hosts actually include your url in the association which would prohibit it from answering other url's without another entry specific for it.

Getting URL's to the DNN site:

Simply set the DNS associated with the URL to point to 123.45.678.90.  This can be done for any number of sites.  In practice, I usually set three A records ( www.domain1.com, domain1.com and *.domain1.com ).  This provides for the ability to add cname sites ( instead of child sites ) using the format "cname.domain1.com".

Getting the URL's to a specific portal is simply a matter of setting the appropriate Portal Alias's in the Site Settings ( under a Super User account ).

That is all there is to it.  You can associate multiple IP addresses if you wish, but there is no requirment to do so.  Once you understand these basic mechanics, you can figure out how to tweak your environment the way you want it, everyone does something a little different.

Implications

Virtually none.  MX records are for eMail and really don't have anything to do with your website.

You'll develop additional questions later based on how you want to do things, what software you use for other purposes, unique aspects of your configuration, etc.  But out of the box, it really is that simple.

Cheers,
Scott


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
9/24/2006 12:20 AM
 

Thanks for the reply. Following your example, let's agree that the DNN host in question (called domain1.com in this example) has been assigned an IP of 123.45.678.90, and that it has 3 A records for www.domain1.com, domain1.com, and *.domain1.com.  I'm clear on what the wildcard allows (unlimited cname.domain1.com names, and any corresponding aliases in the DNN host will resolve to those separate portals).

Here's the key question (I think): so what you're saying is that any other distinct domains that we want to resolve to a portal on domain1.com host installation will also point to 123.45.678.90? I see how this works for somename.domain1.com, but am not sure about something like client1.com.

Examples:

client1.com --> IP is set to 123.45.678.90, portal host has an alias set for client1.com?

client2.com --> IP is set to 123.45.678.90, portal host has an alias set for client2.com?

etc...

If this is the case, it just seems to me that having many domains point to one IP is maybe just asking for trouble with things like reverse lookups (which can cause e-mail issues, which is why that was mentioned)?

I understand that DNN can resolve requests coming to it into separate portals depending on what the domain name in the request is (it answers the phone and hears somebody ask for Bob, so to speak), but to carry the analogy further, we're saying everyone needs to call the same phone (IP) number?

What would be useful to know is how to assign different IPs to different domains and have them resolve to the single DNN host, which then delivers the correct portal. I guess we're talking mutihoming and similar techniques.

 

 

 
New Post
9/24/2006 5:46 PM
 

 

To assign multiple IP addresses to one DNN instance you can configure your IIS website to listen on more than one IP address.

To isolate them even further, you can also create more than one IIS website and have them both point to the same home directory of your DNN install.

However, if you are using multiple IIS websites then you probably would also want multiple DNN instances, because all your data for each portal will be lumped together into the same DB tables if you run off of one DNN instance.  But it can be configured either way.


DotNetNuke Modules from Snapsis.com
 
New Post
9/24/2006 8:42 PM
 
dnnuker wrote

Here's the key question (I think): so what you're saying is that any other distinct domains that we want to resolve to a portal on domain1.com host installation will also point to 123.45.678.90? I see how this works for somename.domain1.com, but am not sure about something like client1.com.

If you want multiple domain names to resolve to the same portal, then yes... this is how you do it.  You just add the names to the list of Portal Aliases.  If you want multiple websites, you simply add those names to the list of Portal Aliases for the portal you want to answer to that name.

dnnuker wrote

If this is the case, it just seems to me that having many domains point to one IP is maybe just asking for trouble with things like reverse lookups (which can cause e-mail issues, which is why that was mentioned)?

This can be configured in myriad different ways.  It's not really possible to state the best way to set it up in "all circumstances", because everyones needs and uses are somewhat different.  Personally, I would not recommend placing a website and an SMTP (or POP ) server on the same IP address.  Actually, I would not recommend them on the same box... but I understand working within constraints.  The point I was trying to make here is simply that as long as IIS knows how to route an HTTP request to the site... DNN can take care of the rest according to the PortalAliases associated with the individual portals, thats all.  So you can associate as many IP addresses to a site as you wish, DNN won't care how they got there, and it will divert them to the correct portal.  They do not need to have the SAME IP number, they just need to reach the IIS site that is supposed to serve the domain.

dnnuker wrote

What would be useful to know is how to assign different IPs to different domains and have them resolve to the single DNN host, which then delivers the correct portal. I guess we're talking mutihoming and similar techniques.

Again, you can make this as hard or easy as you wish ( not knowing all your constraints ) simply assign another IP to the site which houses the DNN instance.  To carry on our example, create DNS entries for domain2.com pointing to 123.45.678.91 and also add 123.45.678.91 to the list of IP's for the same site in IIS ( so you now have one site answering on 2 ip addresses ).  The same DNN instance is receiving the request for domain2.com ( and domain1.com ) and answering with the portal which contains domain2.com in its PortalAlias list.

As far as using separate IIS sites to do this ( sharing a DNN instance in the file system ), I am aware of some folks doing this... but it is not fully supported as there are a number of potential complications with process collisions.  This is not to say that the way that some folks are using DNN does not allow this, some folks will (rightly) say they do this without incident.  However... it again gets back to understanding your constraints & requirements and determining an appropriate configuration strategy.

DNN is very flexible.


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNS for multiple domains, multiple portals, on one DNNDNS for multiple domains, multiple portals, on one DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out