LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-11-2003, 12:53 AM   #1
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
DynDNS, Linksys WRT54G, & subdomains?


I managed to get dynDNS working with my router to point to one of the machines on my network using port forwarding. I have several webservers on various machines in my office. Is there a way to set it up to use subdomains to point to all the machines on my network?

e.g.

ws.whatever.dyndns.com might point to my workstation and
laptop.whatever.dyndns.com would point to my laptop.

#note whatever.dyndns.com is NOT my address.
 
Old 12-11-2003, 06:57 PM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
>linksys WRT54G
Have you read this?

>Is there a way to set it up to use subdomains to point to all the machines on my network?

The router will only have one internet ip address

Either

1)get your ISP to give you more ip addresses so you can have the subdomains
pointed to different domains. Your ISP may not want to give you more addresses. I don't know if the linksys will support multiple ip's, setting static routing entrys to direct packet's in and out might or might not work.

2)Point all the subdomains at your internet ip. Forward port 80 to a webserver. Configure virtual hosts on the webserver and have it proxy the requests to the internal webservers. I think apache supports this.
The HTTP1.1 protocol allows multiple domains on one ip by sending the full URL including the domain in the request.
 
Old 12-11-2003, 08:08 PM   #3
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Original Poster
Rep: Reputation: 30
I'm using slackware 9.1 on all my linux machines.

So I need to edit the httpd.conf on the server machine I have the router forwarding requests to. I will try that. I was wondering if there was something to be done in the routeradministration section.
 
Old 12-11-2003, 08:20 PM   #4
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
>So I need to edit the httpd.conf on the server machine
>I have the router forwarding requests to.

and get your DNS configred so that the subdomains exist.
 
Old 12-11-2003, 08:24 PM   #5
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Original Poster
Rep: Reputation: 30
Is there a good resource on the web where I can read/learn how to do this correctly?
 
Old 12-11-2003, 08:41 PM   #6
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
To get the DNS configured, you are using dynDNS so their webpage would be a good place to start .

To configure apache, google or the apache homepage.
 
Old 12-11-2003, 09:41 PM   #7
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Original Poster
Rep: Reputation: 30
I think I'm on the right track but now quite there. Names have been changed to protect the not so innocent. Wildcard is on at dyndns.org. Exerpts from httpd.conf files from both machines.

#httpd.conf machine router points to

# lots of stuff omitted above here
NameVirtualHost *

<VirtualHost *>
DocumentRoot /var/www/htdocs
ServerName whatever.dyndns.org
</VirtualHost>

<VirtualHost *>
ServerName machine2.whatever.dyndns.org
Redirect / http://192.168.1.104/
</VirtualHost>

#the machine with internal IP 192.168.0.4
NameVirtualHost *

<VirtualHost *>
DocumentRoot /var/www/htdocs
ServerName machine2.whatever.dyndns.org
</VirtualHost>

It will redirect machine2.whatever.dyndns.org to the right machine, but once I click a link then I will get a 192.168.1.104 url.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linksys WRT54G and CUPS/Samba Malibyte Linux - Wireless Networking 6 10-09-2009 02:07 PM
problem with linksys wrt54g and adsl2mue duffboygrim Linux - Networking 0 04-29-2005 02:08 PM
WRT54G linksys router reefa Linux - Networking 2 03-16-2005 03:56 PM
Linksys WRT54G + GPL code... Ateo Linux - Networking 2 02-02-2005 12:27 PM
DYNDNS / Linksys BEFSX41 router VincentB Linux - Networking 1 03-09-2004 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration