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 Afraid.org

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).

https://www.dropbox.com/s/gn1curl63tiq9n2/111.jpg?dl=0

What I need is under this topic
https://www.virtualmin.com/node/9358

Is possible adjust script for connect to other dns dervices?