Networking Forums

Networking Forums > Computer Networking > Linux Networking > DNS and internal routing

Reply
Thread Tools Display Modes

DNS and internal routing

 
 
Scottatron
Guest
Posts: n/a

 
      02-11-2006, 08:38 AM
Ok, here is my wish:

I have a DSL connection with a static IP and a domain name with which I
can edit the DNS entries of.

I have setup an A record and an MX record for home.mydomain.com to
point to my DSL connection's static IP.

On my internal network I have 3 machines. What I would like to be able
to do is create subdomains of home.mydomain.com based on my (ie
internal1.home.mydomain.com, internal2.home.mydomain.com etc..) and
have one of my internal machines receive all incoming traffic and route
traffic to the other internal machines based on the incoming domain
being used.

For example:

internal1.home.mydomain.com recieves all traffic for home.mydomain.com
and subdomains. If I ssh to internal3.home.mydomain.com,
internal1.home.mydomain.com recognises this and routes the traffic
through to internal3.home.mydomain.com

I realise that I can just do this with NAT for specific ports, but
would for the sake of learning, I would also like to learn how to do
this by machine name.

If somebody could point me in the direction of what I should be
learning to acheive this, I would be very appreciative.

Thanks
Scottatron

 
Reply With Quote
 
 
 
 
Antoine EMERIT
Guest
Posts: n/a

 
      02-11-2006, 10:06 PM
"Scottatron" <(E-Mail Removed)> écrivait
news:(E-Mail Removed) oups.com:

> I realise that I can just do this with NAT for specific ports, but
> would for the sake of learning, I would also like to learn how to do
> this by machine name.


If you have the same IP for all your sub-domain , you can't do that at a
TCP/IP only level. Because the hostname is not send in the TCP/IP
connection.

Except in the upper protocol level. For example, the HTTP protocol send
the request hostname in the http header (fiels HOSTNAME=<domaine or
subdomain requested>).

This is not the case in the ssh protocol. It only open a port (default=
22).

So you can't do that with "simple" routing services. Netfilter can't
solve this problem.

In the case of http, you even have t install a "redirector" (heartbeat,
or squid or apache in proxy mode) that analyse the http header to connect
to the right internal server.


Regards

 
Reply With Quote
 
Scottatron
Guest
Posts: n/a

 
      02-11-2006, 10:31 PM
Thanks Antoine

I figured that might be the case.

So am I correct in saying that I could do this if I had more than one
external IP address? And in that case I would use IPTables?

Scott

 
Reply With Quote
 
Antoine EMERIT
Guest
Posts: n/a

 
      03-05-2006, 09:02 AM
"Scottatron" <(E-Mail Removed)> écrivait news:1139700715.148701.326280
@o13g2000cwo.googlegroups.com:

> Thanks Antoine
>
> I figured that might be the case.
>
> So am I correct in saying that I could do this if I had more than one
> external IP address? And in that case I would use IPTables?


Yes, you are correct.


Regards
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal to External to Internal Routing. tc Windows Networking 3 10-27-2008 10:55 PM
routing through an internal WRT54G ksw139@gmail.com Wireless Internet 8 09-24-2006 09:50 PM
pptp server routing internal network problem Bojan Kraut, Alcyone Linux Networking 1 05-03-2004 02:31 AM
Routing HTTP Traffic to Internal Network Gomer Pyle Linux Networking 4 02-18-2004 05:50 AM
Audio routing from internal modem Hallvard Tangeraas Linux Networking 0 08-21-2003 06:43 AM



1 2 3 4 5 6 7 8 9 10 11