Change External IP dynamic Update DNS RECORDS

Hello, I have Dynamic IP.

VirtualMin have one script for CHANGE IP Internal or External mannualy.

I would like to use that script but for update dynamic, using

I can save my current IP in one file and check if is change, if is diferrent, I would like to use tha script (please see image in link).

What I need is under this topic

Is possible adjust script for connect to other dns dervices?