With the MyDNS plugin, which is still under development, you'll be able to do identical thing. This plugin will provide such API.
Sorry I just came back and edited my post as you answered!
That is fantastic, I look forward to this!! I had a quick look for information about it, but could not find any (maybe I searched the wrong place). Will this synchronize between master/slave?