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://bitbucket.org/thtieig/dynip_update/src/master/
Also, for who as a router running DD-WRT, here a quick article about how to set it up.
Enjoy! 😉