Dynamic DNS options for Cloudflare

I setup a rpi 3 b+ to run wireguard and would like to setup dynamic DNS to update my cloudflare DNS.
I just put on a new image (armv7 32-bit)

I noticed dietpi comes with a built in dynamic DNS client. I notice a “custom URL” option that can be specified. Is this something that can be used with cloudflare?

Alterntaively, I tried installing ddclient (apt-get install ddclient libio-socket-ssl-perl) but I get this error:

Can't load '/usr/lib/arm-linux-gnueabihf/perl/5.32/auto/Sys/Hostname/Hostname.so' for module Sys::Hostname: /usr/lib/arm-linux-gnueabihf/perl/5.32/auto/Sys/Hostname/Hostname.so: invalid ELF header at /usr/lib/arm-linux-gnueabihf/perl-base/XSLoader.pm line 93.
 at /usr/lib/arm-linux-gnueabihf/perl/5.32/Sys/Hostname.pm line 24.
Unrecognized character \x11; marked by <-- HERE after <-- HERE near column 1 at /usr/share/perl/5.32/PerlIO.pm line 1.
Compilation failed in require at /usr/share/perl5/IO/Socket/SSL/PublicSuffix.pm line 165.
BEGIN failed--compilation aborted.

It doesn’t matter though since I found that ddclient no longer works with cloudflare in it’s latest release (over a year ago).
If the built-in dietpi DDNS client doesn’t support cloudflare and ddclient doesnt either, can anyone suggest an alternative?

it should be possible to use the custom option inside dietpi-ddns, if you have an update link to update your DDNS. You could simply try it out.

I dont know the update link for cloudflare hence the question

usually there should be some FAQ on Cloudflare website on how to update the DDNS from external.