Below a script that I’ve created to update your Dynamic DNS service.
It has been tested on Raspian (Raspberry Pi), Ubuntu 18.04 and Debian 9.
It works with Internet.bs, No-ip.com and CloudFlare
https://github.com/thtieig/dynip_update/
Also, for who as a router running DD-WRT, here a quick article about how to set it up.
Enjoy! 😉