|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
Quote:
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. |
|
#6
|
||||
|
||||
|
DNS can't do that for you, and yes, you should do what scorpion says and host them all on the same port.
|
|
#7
|
||||
|
||||
|
Quote:
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. |
|
#8
|
|||
|
|||
|
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. |
|
#9
|
||||
|
||||
|
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> |
|
#10
|
|||
|
|||
|
Quote:
Where would I put this? |
|
#11
|
||||
|
||||
|
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.
|
|
#12
|
|||
|
|||
|
Thanks all for the help... I appreciate it.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > BIND 9 Port redirections |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|