DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 15th, 2006, 12:18 PM
bobafett bobafett is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 bobafett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 8 sec
Reputation Power: 0
Help setting up private domain forwarding to ip : port

Hello DS! I have found tons of helpful information on these forums, so I am happy to finally have bothered to join up!

Here is the situation: I have no experience with DNS and I am very much out of my element trying to accomplish this task. I need to configure our local DNS server (windows 2003) to associate certain ip : ports to a domain.

Basically we have multiple internal websites, hosted on one w2k3 box running apache webserver, and I need to resolve multiple domains to each of the virtual hosts that I have configured in apache.

http://intranet1/ >> myapacheserver:1111
http://intranet2/ >> myapacheserver:2222

I have apache configured to run virtual hosts, and it has been tested and works fine... if i type in the ip : port or the machinename : port I can access my sites just fine. I have gotten as far as associating ONE of these domains with the machinename/ip of my webserver, but it resolves to the default web share. This would mean I would need one PC/IP address per domain, which is not going to work out!

Poking around in the DNS forward lookup settings on our domain controller server, I have found a way to associate a machine name, or IP to a domain, but no way to specify ports.

I found a post by SilentRage indicating that this is not possible with DNS alone ,and I need to setup 'Domain Forwarding' as well to get the desired result.

I guess I just need some coaching as to what the next step is. How do I create a dummy server that CAN forward a domain request to the appropriate port? Can all this be done on one machine (webserver) or will I need 2 servers + the domain controller?

Sorry if I am overlooking the obvious, I am primarily the web content publisher, and have not had the opportunity to get my hands dirty with server configuration yet.

Any help or guidance would be appreciated!

-Chris

Reply With Quote
  #2  
Old March 16th, 2006, 11:27 AM
bobafett bobafett is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 bobafett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 8 sec
Reputation Power: 0
I managed to figure this out using IIS 6.0 (ugh...)

Turns out you don't need to forward to any port other than 80. I used the advanced option to specify the host value to direct the user to the proper web site. It works beatifully as far as I have been able to test.

I guess this wasn't a DNS issue, all I could do is point both domains to the same IP, and let IIS figure out the rest.

Now I want to try to figure this out using apache though!

Reply With Quote
  #3  
Old March 16th, 2006, 11:55 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,255 SilentRage User rank is First Lieutenant (10000 - 20000 Reputation Level)SilentRage User rank is First Lieutenant (10000 - 20000 Reputation Level)SilentRage User rank is First Lieutenant (10000 - 20000 Reputation Level)SilentRage User rank is First Lieutenant (10000 - 20000 Reputation Level)SilentRage User rank is First Lieutenant (10000 - 20000 Reputation Level)SilentRage User rank is First Lieutenant (10000 - 20000 Reputation Level)SilentRage User rank is First Lieutenant (10000 - 20000 Reputation Level)SilentRage User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 11 h 14 m 35 sec
Reputation Power: 171
kudos to you on finding the answer. Yes, on IIS it is multiple websites on a single server via "Host Headers". For apache, the terminology is "VirtualHosts". Feel free to pick the brains lurking about the apache forum.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #4  
Old March 23rd, 2006, 02:04 PM
bobafett bobafett is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 bobafett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 8 sec
Reputation Power: 0
I did end up figuring out the apache way of solving this problem as well. my problem is that I was so hung up on forwarding to a certain port (because that is how my dev box is setup). turns out it was all too easy to get it right, just cleared out my virtual hosts and started over, trying to emulate what I had setup with IIS, and it worked like a charm!

one of these days I will have it all figured out! for the time being I have to sludge my way through any server configurations the slow way!

Reply With Quote
  #5  
Old April 5th, 2012, 08:11 AM
bellatrix1001 bellatrix1001 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 1 bellatrix1001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 49 sec
Reputation Power: 0
Make sure you have a DNS entry as well!

Quote:
Originally Posted by bobafett
I managed to figure this out using IIS 6.0 (ugh...)

Turns out you don't need to forward to any port other than 80. I used the advanced option to specify the host value to direct the user to the proper web site. It works beatifully as far as I have been able to test.

I guess this wasn't a DNS issue, all I could do is point both domains to the same IP, and let IIS figure out the rest.

Now I want to try to figure this out using apache though!


Thanks bobafett! You pointed me in the right direction. One important thing to note: Make sure your DNS server has a "HOST" entry that matches the host name you provide to IIS and it's pointing to the IIS IP address.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Help setting up private domain forwarding to ip : port

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap