Question

Adding a subdomain pointing at a server on a dynamic IP?

Posted May 4, 2014 3.7k views
Along with the 5 droplets I have through DigitalOcean, I host a small server at home on a dynamic IP address. Is there any way to set that server up as a subdomain on my primary domain (kjsr.net), with the dynamic IP address? And if so, how would I go about setting up things so it updates the IP the subdomain automatically? I already have a DynDNS acount, but their prices are going up drastically this year, so I'd prefer moving the server under my own domain completely.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer
For a quick solution, I'd recommend http://freedns.afraid.org/; there you can get a free sub-domain and a simple script which will update the DNS record with them, then you can create a CNAME on your own domain pointing to the free sub-domain.

Alternatively, with a bit more work, you could use the DigitalOcean API to update an A record for your DNS.
Submit an Answer