Share via


Redirect URL with Server 2008R2 DNS -- What's the procedure?

Question

Monday, April 11, 2011 2:32 PM

Hi All,

We have an application that was previously hosted on an internal server (http://example.com).  This application is now being hosted by an outside vendor with a different URL (http://new.server.com).

To make it easy for our users, we placed a shortcut. in the Start Menu in our image.  I'd like to set up a redirect in DNS to point example.com (which no longer exists) to new.server.com in our primary DNS server (Server 2008R2).  If anyone can point me in the right direction, I'd appreciate it.

Everyone gets everything he wants. Me, I wanted to be a sysadmin. And for my sins --they made me one.

All replies (4)

Monday, April 11, 2011 7:06 PM ✅Answered | 1 vote

DNS was not designed for URL redirection, rather just for hostname resolution. So there's really no way to "redirect" a URL from non-secure to a secure HTTPS link.

For something like this, if you still have the internal server, server-name, you can install IIS on it, and under the default site properties, home directory tab (properties would depend on if IIS6 or IIS7), create a redirect to the URL you want.

Ace

Ace Fekay
MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007 & Exchange 2010, Exchange 2010 Enterprise Administrator, MCSE & MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services

This posting is provided AS-IS with no warranties or guarantees and confers no rights.


Monday, April 11, 2011 7:36 PM ✅Answered

Hello again,

like Ace said, you can use IIS and perform http redirection.

For more information, post in http://forums.iis.net/ forums.

 


This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Microsoft Student Partner

Microsoft Certified Professional
Microsoft Certified Systems Administrator: Security
Microsoft Certified Systems Engineer: Security
Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration


Monday, April 11, 2011 3:40 PM

You have to proceed like that:

  • Create a primary zone named example.com
  • Create an empty A record that points to the IP address of the new.server.com server

Once done, use nslookup to make sure that all is okay.

 

 


This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Microsoft Student Partner

Microsoft Certified Professional
Microsoft Certified Systems Administrator: Security
Microsoft Certified Systems Engineer: Security
Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration

 


Monday, April 11, 2011 3:49 PM

A slight addendum to my question, regarding syntax (and an apology, for not realizing this sooner and making it a part of the original question):

Say my original URL was in the following format, rather than a complete .com domain:

http://server-name/service

And the new address was in this format:

https://new.server.com/sample (it is an HTTPS site)

What would I use for the primary zone?  Just the server name?  And, would this change the syntax of the host record?  Unfortunately, I have no choice on needing to redirect to the "/sample" portion of the URL, the root will not be enough.

Everyone gets everything he wants. Me, I wanted to be a sysadmin. And for my sins --they made me one.