View previous topic :: View next topic |
Author |
Message |
d11wtq Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1790896682437f3ff79b696.gif)
Joined: 14 Jul 2005 Posts: 192 Location: Manchester, UK
|
Posted: Tue Jan 17, 2006 12:39 pm Post subject: Name based Virtual Servers |
|
|
Hi,
I asked this thread here: https://forums.gentoo.org/viewtopic-t-423415.html but got no response, probably because I worded it badly
I have a server, it has only *one* real external IP address. I run DNS and HTTP among other things from this server.
I'd like different domain names to tunnel onto some virtual IP's on this server when requests come in. For example, my external IP is 212.69.XX.XXX and I have domain1.com and domain2.com both resolving here (using my own DNS server).
I'd like my server to see domain1.com on eth0:0 (10.0.0.1) and domain2.com on eth0:1 (10.0.0.2) so that it can delegate services depending upon domain name. Is this possible at all? I'm hoping the fact that I'm authoratitive for the domains makes it feasible
I hope one you brain boxes out there can give me a keyword to search for or something
Thanks,
d11wtq |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Genone Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/21004157514287ab2b29021.jpg)
Joined: 14 Mar 2003 Posts: 9625 Location: beyond the rim
|
Posted: Tue Jan 17, 2006 4:48 pm Post subject: |
|
|
Not really possible in a generic way, TCP/IP doesn't care about the DNS name.
It is possible with some application protocols like http that include the DNS name in the TCP payload, you'll have to configure each service for that individually though, and not many protocols support it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d11wtq Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1790896682437f3ff79b696.gif)
Joined: 14 Jul 2005 Posts: 192 Location: Manchester, UK
|
Posted: Tue Jan 17, 2006 5:36 pm Post subject: |
|
|
Genone wrote: | Not really possible in a generic way, TCP/IP doesn't care about the DNS name.
It is possible with some application protocols like http that include the DNS name in the TCP payload, you'll have to configure each service for that individually though, and not many protocols support it. |
Yeah I was pretty much expecting that answer Thanks anyway. I was hoping that I could do some DNS trickery.
My host allows me up to 5 IP addresses in any case so I'll just delegate these to eth0:0 eth0:1 etc etc and handle it on an IP level. That's just a lot more restrictive than I was hoping since it maxes out at 5 domains ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|