DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 May 4th, 2004, 11:16 PM
taic taic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: here
Posts: 6 taic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to taic Send a message via Yahoo to taic
Question BIND 9 Port redirections

I'm running A custom BIND 9 server on a small business/home network which provides internal(behind the firewall) DNS. I have external DNS provided my dyndns.org. My problem is that I have nodes on my network that can't resolve curtain websites that reside on my servers because they use port re-direction. I was hoping someone could provide me with the syntax for the conf files in BIND to add redirection to an IP.

Thx

Taic

Reply With Quote
  #2  
Old May 5th, 2004, 11:46 AM
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,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
What do you mean by redirection to an IP?
__________________
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
  #3  
Old May 5th, 2004, 12:18 PM
taic taic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: here
Posts: 6 taic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to taic Send a message via Yahoo to taic
I host multiple websites on the same box. Some require IIS or Apache and some have there own web interface. The main website uses port 80 but the others use 81, 82 , etc. I want to configure BIND or the URL so that when the users what to go to one of the sites all they have to type is www.testsite.com, veruses www.hostname.com:81. Does that make more sense?

Thx
Taic

Reply With Quote
  #4  
Old May 5th, 2004, 12:22 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,529 Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 4 h 35 m 54 sec
Reputation Power: 876
Stupid question, but why not just use VirtualHosting and set all of them to use port 80 then?
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month

Reply With Quote
  #5  
Old May 5th, 2004, 12:33 PM
taic taic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: here
Posts: 6 taic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to taic Send a message via Yahoo to taic
Quote:
Originally Posted by Scorpions4ever
Stupid question, but why not just use VirtualHosting and set all of them to use port 80 then?

I'm sorry for nOOb question but what do you mean by virtual hosting? The way I understand things a computer only has one port 80 so I can only configure one site at a time. What I was trying to do was almost like port forwarding but is done directly in BIND vs using a firewall.

Reply With Quote
  #6  
Old May 5th, 2004, 12:33 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,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
DNS can't do that for you, and yes, you should do what scorpion says and host them all on the same port.

Reply With Quote
  #7  
Old May 5th, 2004, 12:38 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,529 Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 4 h 35 m 54 sec
Reputation Power: 876
Quote:
Originally Posted by taic
I'm sorry for nOOb question but what do you mean by virtual hosting? The way I understand things a computer only has one port 80 so I can only configure one site at a time. What I was trying to do was almost like port forwarding but is done directly in BIND vs using a firewall.

Sorry, I should have said "Name based Virtual Hosting". You're right that the computer only has one port 80, but you can configure multiple sites on it. Both Apache and IIS allow you to configure multiple sites on the same IP/port. Here's how to do it for Apache.
http://httpd.apache.org/docs/vhosts/name-based.html

For IIS, you have to configure Host Headers. I've done it a while ago, so I know it is possible. Feel free to search/ask questions in the Apache or IIS forum using the magic words "Name Based Virtual Hosting" and you can get plenty of tips on how to do this.

Reply With Quote
  #8  
Old May 5th, 2004, 12:48 PM
taic taic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: here
Posts: 6 taic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to taic Send a message via Yahoo to taic
Question

Ok I understand that, but how then do I get the URL the users types to be only www.hostname.com and not www.hostname.com:81?

One of the services that I run on my windows box is a Merak Mail server which comes with a web interface built in and doesn't require IIS or Apache. I would like users to be able to type webmail.domain.com and get to the web interface, but the interface uses port 32000 and I need to redirect or resolve it before it gets to the box.

Reply With Quote
  #9  
Old May 5th, 2004, 01:33 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,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
Use URL redirection. Here's a virtual host dedicated to redirecting a URL:

<VirtualHost *>
ServerName webmail.mysite.com
Redirect 301 / http://webmail.mysite.com:32000/
</VirtualHost>

Reply With Quote
  #10  
Old May 5th, 2004, 01:37 PM
taic taic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: here
Posts: 6 taic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to taic Send a message via Yahoo to taic
Quote:
Originally Posted by SilentRage
Use URL redirection. Here's a virtual host dedicated to redirecting a URL:

<VirtualHost *>
ServerName webmail.mysite.com
Redirect 301 / http://webmail.mysite.com:32000/
</VirtualHost>

Where would I put this?

Reply With Quote
  #11  
Old May 5th, 2004, 03: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,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
if you're using apache then you really need to get with learning the basics on configuring it. You place it at the bottom of your httpd.conf.

Reply With Quote
  #12  
Old May 5th, 2004, 04:01 PM
taic taic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: here
Posts: 6 taic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to taic Send a message via Yahoo to taic
Thanks all for the help... I appreciate it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > BIND 9 Port redirections


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