Question

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

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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. <br> <br>Alternatively, with a bit more work, you could use the DigitalOcean API to update an A record for your DNS.