I’ve put the two scripts I wrote and an example crontab file to drive them into a project called dyndns-updater.

Dynamic DNS is awesome.