LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-16-2009, 06:21 PM   #1
ABL
Member
 
Registered: Mar 2005
Location: NYC
Distribution: CentOS 5
Posts: 54

Rep: Reputation: 16
Hosting multiple subdomains on 1 dynamic IP


I run my own DNS servers and host my own domains. I'd like to host a few subdomains of one of my domains on a server with a dynamic IP.

Is there a way to do this? I *believe* that I can host one subdomain by using a CNAME record and a dynamic DNS service.
e.g., mysubdomain.mydomain.com. IN CNAME myaccount.dyndns.com. ;EXTREF

How can I host more than one subdomain on a server with a dynamic IP address?

Thanks for any help.
 
Old 05-16-2009, 06:52 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
CNAME to your heart's content. The bigger problem, i think, is ensuring that DNS (and that of the world not just yours) is updated to reflect the change in your dynamic IP in a timely manner so that 1) you continue to server your sites, and 2) you do not inadvertently cause a DDoS to whomever unsuspectingly gets that IP should they have the unfortunate luck.

It has been a few years since I last used a service similar to DynDNS or No-IP, but when I last did there was an option (fee) that they would keep it updated.
 
Old 05-16-2009, 07:11 PM   #3
ABL
Member
 
Registered: Mar 2005
Location: NYC
Distribution: CentOS 5
Posts: 54

Original Poster
Rep: Reputation: 16
If I were to use multiple CNAME records (one for each domain), would I need a separate dynamic IP address host or could I just use:
mysubdomain1.mydomain.com. IN CNAME myaccount.dyndns.com. ;EXTREF
mysubdomain2.mydomain.com. IN CNAME myaccount.dyndns.com. ;EXTREF
mysubdomain3.mydomain.com. IN CNAME myaccount.dyndns.com. ;EXTREF
mysubdomain4.mydomain.com. IN CNAME myaccount.dyndns.com. ;EXTREF

If I did this, would apache pick up which mysubdomainx referred it, so I could just set up the virtual hosts with the mysubdomainx names and I'd be okay?

Or, would I need multiple DynDNS or No-IP accounts, one for each subdomain? e.g.,
mysubdomain1.mydomain.com. IN CNAME myaccount1.dyndns.com. ;EXTREF
mysubdomain2.mydomain.com. IN CNAME myaccount2.dyndns.com. ;EXTREF
mysubdomain3.mydomain.com. IN CNAME myaccount3.dyndns.com. ;EXTREF
mysubdomain4.mydomain.com. IN CNAME myaccount4.dyndns.com. ;EXTREF


Thanks, again.
 
  


Reply



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
Dynamic virtual hosting and ulr without www tomekf Linux - Server 5 10-16-2006 03:10 AM
dynamic IP/web hosting microsoft/linux Linux - Networking 1 09-25-2005 01:54 PM
need help about dynamic hosting alvi2 Linux - Networking 2 05-05-2005 10:58 AM
Apache VirtualHost, multiple domains and subdomains chrisfx Linux - Networking 2 08-10-2004 02:58 PM
Hosting dynamic DNS Kostko Linux - Networking 6 12-15-2002 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:09 PM.

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