What's new

Inadyn Cloudflare DDNS Help?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

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):

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:
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):

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.
Does this still work for you guys? I've tried several different ways... using several different tokens... but all a no go. I am running Asus Merlin 386.9... and the logs show that the script begins... but never communicates the IP "A" record modification to Cloudflare. I've tried the recommendations for token creation... but still doesn't complete! Any help/guidance is appreciated.
 
I ended up transferring my domain from "Cloudflare" to "domains.google" then using Google for my DDNS. Maybe not what you were looking for but it was the "Keep It So SImple"solution I could find.

Although I did try opendns with a service pointing to cloudflare, which did work but I didnt like the relay of DDNS.
 
Since Google domains is dropping support for DDNS and moving everything to Squarespace, I transferred my domains to Cloudflare. I wanted to confirm this works great for me for both IPv4 and IPv6!

Thanks for sharing your inadyn config!
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top