A Single Domain Hosting Multiple Subdomains With Unique IP Addresses
A Single Domain Hosting Multiple Subdomains With Unique IP Addresses
This setup might not be ideal, but I'm exploring it to create small cloud instances on Raspberry Pis for friends. SSL encryption is essential, so a domain name is necessary. I plan to assign each friend a unique domain with multiple subdomains, directing them to their external IP. While it seems logical, I'm aware of networking and security challenges and want to avoid potential problems. I aim for each person to have their own Pi with separate files and configurations. Is this a viable approach?
Your friends use static IP addresses? If not, you'll need to refresh the DNS entries each time their IP changes. Automation is possible, but there are additional factors that might fail. I think their public internet services aren't the only connections—they'll also need to configure port forwarding on their routers, which could be uncertain depending on whether it's hardware-based or managed by the ISP. Depending on their internet providers, running web services might violate their terms of service. This could be a problem if the traffic is low (the ISP might simply ignore it), but some providers actively block essential ports like 80 and 443. Subdomains require a registrar that supports them; some charge extra, others may refuse. Verify their policies before purchasing a domain name. What kind of services do you expect running on these devices? A web server, email server, file storage? Are you comfortable managing them yourself, or will your friends be capable? (P.S. I'm not dismissing your concept, just highlighting points to consider)
I plan to use GoDaddy for the domains and understand they don't charge for DNS records. I currently manage several domains for game servers I host along with my personal cloud services, specifically NextCloud instances they run. I wasn't aware of their terms of service with ISPs, so I'll note that to them for their awareness. As far as I know, they provide static IP addresses, though I'll confirm this later.
I rely on Namecheap, which is excellent and lets you manage numerous DNS records via their free service. This makes it easy to set up many subdomains. I prefer it over GoDaddy because it feels more professional and doesn’t require heavy advertising spend. The platform is simpler, with a smaller interface that likely offers better support. You might explore afraid.org, a free DNS tool that automatically updates IP addresses if needed. Visit their site for details: http://freedns.afraid.org/faq/#14 You can link your domain to their server, control subdomains through their dashboard, and allow friends to create their own. They offer software to keep IPs current if needed. For complete anonymity, a subscription may be required, though free accounts have limits—around six subdomains. A static IP isn’t critical; updates usually take 15–30 minutes, possibly longer with free services. Typically, ISPs change IPs only during restarts or planned maintenance periods.