Solved

DNS Forward with parameters

Posted on 2012-12-22
4
267 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
  • 2
  • 2
4 Comments
 
LVL 39

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 39

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Most DNS problems are VERY easily troubleshot and identifiable if you can follow the steps a DNS query takes. I would like to share the step-by-step a DNS query takes from the origin to the destination. _____________________________________________…
This article is intended as an extension of a blog on Aging and Scavenging by the MS Enterprise Networking Team. In brief, Scavenging is used as follows: Each record in a zone which has been dynamically registered with an MS DNS Server will have…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now