Solved

DNS Forward with parameters

Posted on 2012-12-22
4
295 Views
Last Modified: 2012-12-26
I have a main domain (e.g. www.LongDomainName.com) and a short domain (e.g. www.shrtdm.com).  

I have recently moved my corporate website into a fully hosted environment.  Previously, we hosted the proprietary CMS.  In my setup, I had IIS forward all requests for www.shrtdm.com to www.LongDomainName.com, including all parameters after the domain.

So  IIS would redirect requests for http://www.shrtdm.com/contactus to http://www.LongDomainName.com/contactus.  It was a wildcard redirect so it would work for any URL, not just predesignated ones.  

Since we moved the system to the provider, we can no longer touch the backend.  What I have currently done, is just point both domains "A" records to the same IP.  This causes a problem with SSL certificate.  Since, the short domain name gives users errors, since the certificate is for the long domain.

Can I redirect requests through the DNS system, rather then in IIS?

Thanks!
0
Comment
Question by:dauyeung
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:footech
ID: 38716620
No, DNS is not capable of redirecting requests in this fashion.  No matter what type of record you use, whether a CNAME or A, you can return the IP you want, but that won't help you with SSL since the URL will always be what was typed in (or clicked on) and so you get the name mismatch.

The two options I see are
 - to change your SSL cert to use a UCC/SAN cert which you can specify multiple domains on, then pointing both A records to the same IP.
 - set up a separate site for your shortname domain where you can do the same redirect as you were doing before.
0
 

Author Comment

by:dauyeung
ID: 38721242
Can this be done in a PHP script then on a Netfirms.com hosted domain?
0
 
LVL 40

Accepted Solution

by:
footech earned 500 total points
ID: 38721448
I'm not familiar with Netfirms.com (but I suspect any hosted solution would be the same) or PHP really, but I do know it's possible to create a page that will do a redirect instead of having the site configuration do it.  In the past I've seen .aspx solutions, and I think a couple other types.  I don't know how this would work if you wanted to redirect to different URLs (i.e. keeping the relative path after the domain).  I'm sure you get a better response posting a question like that in the Topic area specific to what you're working with (e.g. PHP).
0
 

Author Comment

by:dauyeung
ID: 38722158
Yes.  Thanks.   I've done that now.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how a domain name may be inadvertently appended to all DNS queries. This exhibits as described below. (CODE)And / Or: (CODE) Cause This issue can occur in either of these two scenarios. EITHER 1. A Primary DNS S…
I wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question