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. |
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. |
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. |
All times are GMT -5. The time now is 11:36 AM. |