Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DNS Forward with parameters

Posted on 2012-12-22
4
Medium Priority
?
306 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 41

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 41

Accepted Solution

by:
footech earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 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