Run custom script when ip address of the interface changes

Hi,
as in title, I 'd like to run my script (namely update dyndns) every time local address of my pppoe-out1 interface changes. Working solution would be to create a job which checks whether the IP has changed. However this is not optimal so I am looking for something better. Is there any system event where I could hook my script?

Cheers,

if you only want to update dyndns why don’t put a sheduler for every 10 minutes ?
Dyndns wont see this as spamming .. anything below 10 minutes might be looked at as hammering.