You can use this to alter your DNS entries at GratisDNS. cURL required.
See example.php
for how to use this and use dyndns.php
to automatically update a record with a dynamic ip.
Feel free to fork.
-- This php script use 'PHP Simple HTML DOM Parser' to parse the HTML. http://simplehtmldom.sourceforge.net