CWolfCW
New Around Here
So I've spent about 3 hours trying to get this working so far while following the instructions from https://github.com/RMerl/asuswrt-merlin.ng/wiki/DDNS-services and https://github.com/troglobit/inadyn and https://github.com/troglobit/inadyn/blob/master/examples/cloudflare-ipv4-ipv6.conf.
Unfortunately, I keep getting the dreaded "Request error! Please try again." message. Any advice?
My inadyn.conf (stored at /jffs - minus the sensitive information):
My ddns-start script (stored at /jffs/scripts):
SOLUTION: Just in case anyone is trying to figure it out, it turns out that you need to set your API Token to "All zones". Everything is functional for me now for both IPv4 and IPv6 Cloudflare DDNS via Inadyn.
Unfortunately, I keep getting the dreaded "Request error! Please try again." message. Any advice?
My inadyn.conf (stored at /jffs - minus the sensitive information):
Apache config:
# In-A-Dyn v2.x configuration file format
#period = 300
#user-agent = Mozilla/5.0
allow-ipv6 = true
# ipv4
provider cloudflare.com:1 {
# checkip-server = 1.1.1.1
# checkip-path = /cdn-cgi/trace
checkip-command = "/bin/nvram get wan_ipaddr"
username = domain.com
password = API-Token-Key # Create a unique custom api token with the following permissions: Zone.Zone - Read, Zone.DNS - Edit.
hostname = sub.domain.com
ttl = 1 # optional, value of 1 is 'automatic'.
proxied = false # optional.
}
# ipv6
provider cloudflare.com:2 {
# checkip-server = dns64.cloudflare-dns.com
# checkip-path = /cdn-cgi/trace
checkip-command = "/bin/nvram get ipv6_wan_addr"
username = domain.com
password = API-Token-Key # Use the same api token as above.
hostname = sub.domain.com
ttl = 1 # optional, value of 1 is 'automatic'.
proxied = false # optional.
}
My ddns-start script (stored at /jffs/scripts):
Bash:
#!/bin/sh
inadyn --once -f "/jffs/inadyn.conf" -e "/sbin/ddns_custom_updated 1" --continue-on-error "/sbin/ddns_custom_updated 0"
SOLUTION: Just in case anyone is trying to figure it out, it turns out that you need to set your API Token to "All zones". Everything is functional for me now for both IPv4 and IPv6 Cloudflare DDNS via Inadyn.
Last edited: