Digitalocean has a free dns service plus an api. All you need is a cron based api call and you have dynamic dns.
I did not know this. Source/docs?
As a note: you'll have to add a valid payment method on DigitalOcean to activate your account, but once you're in it's free to use all the DNS features, and you can automate via the API, docs here: https://developers.digitalocean.com/documentation/v2/#domain...