Solved

DNS Forward with parameters

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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