I have tried using a script for updating my DynDNS on a regular basis. After about a day DynDNS blocked me because of excessive updating.
Of course my script was different from yours, but the result *may* be the same. Since then, I have decided to install inadyn, which is recommended by DynDNS. Search for my how-to on this forum that I posted today.