There's nothing specific to asuswrt about inadyn. You would get better support directly from inadyn folks.
FWIW, inadyn still doesn't support dual updates so if you want to update both ipv6 and ipv4 you need to run it twice with two different configs.
For simplicity, I use this script in
/jffs/scripts/ddns-start
which does the API calls that cloudflare needs under the hood. You have to set the variables used above this, but this is the meat of the script:
Code:
IP=$(ip -4 addr show dev eth0 scope global |awk '/inet / { print $2 }'|cut -d/ -f1)
TYPE=A
curl -X PATCH "https://api.cloudflare.com/client/v4/zones/$ZONEID/dns_records/$IP4_RECORDID" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
--data "{\"type\":\"$TYPE\",\"name\":\"$RECORDNAME\",\"content\":\"$IP\",\"ttl\":"$TTL",\"proxied\":false}"
echo
IP=$(ip -6 addr show dev eth0 scope global permanent |awk '/inet6 / { print $2 }'|cut -d/ -f1)
TYPE=AAAA
curl -X PATCH "https://api.cloudflare.com/client/v4/zones/$ZONEID/dns_records/$IP6_RECORDID" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
--data "{\"type\":\"$TYPE\",\"name\":\"$RECORDNAME\",\"content\":\"$IP\",\"ttl\":"$TTL",\"proxied\":false}"
echo
if [ $? -eq 0 ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi