Mapping Subdomain to ANOTHER Server using IIS

Posted on 2005-03-18
Medium Priority
Last Modified: 2011-09-20
Well I know how simple this would be in Apache.....all I'd have to do is update the DNS A records and it would be done.  However, the company I'm working with uses a Windows/IIS platform.  So here is the situation:

The company I'm working with for a web project owns the domains and currently has their own Windows/IIS server.  I will be providing content for their website using my own PHP code on my own server that only I will have access to.  Therefore I need to redirect traffic from their site to my own web server (currently has it's own static IP).  Here's the kicker - I only need to redirect certain subdomains.....not the main domain.

http://au.COMPANYSITE.com needs redirected to http://IPADDRESS#1
http://ca.COMPANYSITE.com needs redirected to http://IPADDRESS#2
http://in.COMPANYSITE.com needs redirected to http://IPADDRESS#3

Before jumping to conlusions, I want it so users do not know the re-mapping is taking place.  Therefore, when a user visits http://au.COMPANYSITE.com/folder/aboutus.php the request is actually mapped to http://IPADDRESS#1/folder/aboutus.php ..... but the user's address bar still shows http://au.COMPANYSITE.com/folder/aboutus.php.  Therefore they are oblivious to the transparent mapping.

Now on apache I have found this simple, simple, simple to do.  But I'm pulling my hair out trying to figure out how to do it with Windows/IIS.  Right now I have been given remote desktop access to their Windows 2000 server.  I've looked at everything from individual subdomain properties to the DNS administration program.  The "test changes" I've made have not been successful.  For instance, I tried simply updating the subdomain using the "Home Directory" tab in the properties dialog box.  I changed the option from "A directory located on this computer" to "A redirection to a URL".  Now this did redirect.....but now the user/visitor's address bar showed the IPADDRESS#1.  

Does anyone have some advise for a non Windows/IIS person to make this work correctly?  I appeciate your assistance.  Thanks, everyone!

Question by:ellisgolf
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
LVL 33

Expert Comment

ID: 13579407
It's still simple to do.  You just use your same DNS solution you suggested off the top, ie. point the A record for each subdomain to the IP address of the server that will contain that website.  It doesn't matter if the destination server is Apache or IIS as long as it is configured to serve that website.

Author Comment

ID: 13580950
I don't know how to update the A record.  Through the DNS Program in IIS, it does not appear that anything is even being used anyway.  It baffles me.  There are about 40 subdomains setup on the server that work correctly, and also several other domain names.  But none of the records are available in the DNS program from what I can find.
LVL 33

Accepted Solution

humeniuk earned 200 total points
ID: 13581033
The IIS server isn't necessarily acting as the DNS server for that domain.  They could be using their registrar or a third party DNS service.  Ask them what they are using for DNS.  That's where you will have to change the settings.  Once you have found that it is as simple as using a host (A) record to point a subdomain to the proper IP address (assuming the web server at that IP address - apache, IIS, whatever - is configured to serve that website: sub.domain.com).

If it turns out they are using local Windows DNS, check back here and I can give you help configuring it.

Assisted Solution

lokip earned 200 total points
ID: 13678045
I obviously can't test this on your machine, but I had a similiar problem a few years ago with 2k. I had to delete the subdomain and just add an A record *without* IIS knowing their was a subdomain even there. When IIS thought there was a subdomain, it had a nasty habit of taking over the DNS entries for it.


Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

771 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