Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
subdomain questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aequitas
Apprentice
Apprentice


Joined: 28 Aug 2002
Posts: 190
Location: Ooy bij arnhem

PostPosted: Sun Mar 30, 2003 10:11 pm    Post subject: subdomain questions Reply with quote

I have just posted registration forms for a domain (torx.nl) and some hosting :D

Now i would like to bind some subdomain's to the pc's in my local network.
The guys there at the hosting organisation have a dns server linking www.torx.nl to thier hosting server, ftp.torx.nl to my external ip.
and messiah.torx.nl to my external ip.

messiah is my ftp/webserver

Is it possible to have ie aequitas.torx.nl point to my desktop pc where i am typing this topic right now?

My internal network structure is:
adsl_modem_with_nat->switch->desktop_pc
80.60.48.140 -> 10.0.0.2

soon will be:
adsl_modem->server_with_iptables->switch->desktop_pc
80.60.48.140 -> 10.0.0.1 - 192.168.0.1 -> 192.168.0.2


Would it be that they would point *.torx.nl exept www to my external ip
or could they point aequitas.torx.nl to my external ip and that my server points it to my desktop?
_________________
I am not superstitious, that brings bad luck.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Mar 31, 2003 10:38 am    Post subject: a little confusing Reply with quote

Not quite sure what your network looks like, but I think the answer to your question is yes. You can point any name to any IP. Whether the rest of the world can see said IP is another story. If you want the rest of the world to see the address it must be an external IP and you'll probably want to setup some sort of static NAT or port forwarding.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
aequitas
Apprentice
Apprentice


Joined: 28 Aug 2002
Posts: 190
Location: Ooy bij arnhem

PostPosted: Mon Mar 31, 2003 11:24 am    Post subject: Reply with quote

It is the aim for the rest of the world to use the subdomain.

is it possible for my router to see what subdomain is used so it can redirect to the rigth computer?
_________________
I am not superstitious, that brings bad luck.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Mar 31, 2003 11:40 am    Post subject: Reply with quote

aequitas wrote:
It is the aim for the rest of the world to use the subdomain.

is it possible for my router to see what subdomain is used so it can redirect to the rigth computer?


Not unless is has the ability to do layer 7 filtering which I hihgly doubt. I assume you only have one IP to work with. You can use your firewall to do something like the following

*.torx.nl --> 80.60.48.140

port 21, http--> 10.10.10.13
port 80, http --> 10.10.10.15

You could also use virtual hosts within Apache assuming you only care about port 80 traffic, else you're going to need seperate IP's.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Mon Mar 31, 2003 12:50 pm    Post subject: Reply with quote

for that you would need to update the dns for your subdomain dynamicly. if you host dns for yourself this should be no problem (whith bind 9.2).

but ... this only goes one-sided .. i.e. for the www.foobar.org->1.2.3.4 and *not* from the 1.2.3.4->www.foobar.org side (as you don't have the autoritive record from your home/DSL zone !)
Back to top
View user's profile Send private message
aequitas
Apprentice
Apprentice


Joined: 28 Aug 2002
Posts: 190
Location: Ooy bij arnhem

PostPosted: Mon Mar 31, 2003 4:10 pm    Post subject: Reply with quote

Wel i think i know how it works a little bit now.

thinks ill be working with virtual hosts then.
_________________
I am not superstitious, that brings bad luck.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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