If you want you can modify my script: http://forum.mikrotik.com/t/advanced-dynamic-dns-script-dyndns-dynu-updated/116692/1