ssh ubnt@<your-ip>
configure
set service dns dynamic interface eth0 web https://ipinfo.io/json
set service dns dynamic interface eth0 web-skip "ip: "
First of all, create the subdomain in the Cloudflare zone.
set service dns dynamic interface eth0 service custom-cloudflare host-name <hostname.yourdomain.org>
set service dns dynamic interface eth0 service custom-cloudflare login <[email protected]>
set service dns dynamic interface eth0 service custom-cloudflare password <CloudFlare API key>
set service dns dynamic interface eth0 service custom-cloudflare protocol cloudflare
set service dns dynamic interface eth0 service custom-cloudflare options zone=<yourdomain.com>
commit
save
https://help.ubnt.com/hc/en-us/articles/204976324-EdgeRouter-Custom-Dynamic-DNS
Why not use
https://ipinfo.io/ip
instead? It returns just the IP, so you don't need the web-skip option (which feels really hacky).