Solved

DNS Forward with parameters

Posted on 2012-12-22
4
285 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 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SBS 20011 to Office 365 7 92
DNS CName is not working properly? 11 83
SPF record. 2 30
SBS Server 2011 does not recognize a PC as being Online 8 58
If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 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