View previous topic :: View next topic |
Author |
Message |
aequitas Apprentice
Joined: 28 Aug 2002 Posts: 190 Location: Ooy bij arnhem
|
Posted: Sun Mar 30, 2003 10:11 pm Post subject: subdomain questions |
|
|
I have just posted registration forms for a domain (torx.nl) and some hosting
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 |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Mon Mar 31, 2003 10:38 am Post subject: a little confusing |
|
|
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 |
|
|
aequitas Apprentice
Joined: 28 Aug 2002 Posts: 190 Location: Ooy bij arnhem
|
Posted: Mon Mar 31, 2003 11:24 am Post subject: |
|
|
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 |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Mon Mar 31, 2003 11:40 am Post subject: |
|
|
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 |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Mon Mar 31, 2003 12:50 pm Post subject: |
|
|
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 |
|
|
aequitas Apprentice
Joined: 28 Aug 2002 Posts: 190 Location: Ooy bij arnhem
|
Posted: Mon Mar 31, 2003 4:10 pm Post subject: |
|
|
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 |
|
|
|