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

May 4, 2014 2k 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 (, 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.
1 Answer
For a quick solution, I'd recommend; 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.
Have another answer? Share your knowledge.