Skip to content

pilonull/asuswrt-merlin-ddns-cloudflare

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Asuswrt-Merlin DDNS for CloudFlare

This is a custom shell script for Asuswrt-Merlin router firmware to update DDNS via CloudFlare.

Setup

  1. Add an A record in CloudFlare for your domain. IP for the record can be anything since the script will overwrite it later anyway.

  2. Download ddns-start script and modify the following variables with your own settings:

    APITOKEN is your API Token generated from the User Profile 'API Tokens' page. I recommend creating a token with minimal access to limit exposure:

    Permission: Zone | DNS | Edit
    Zone Resources: Include | Specific Zone | <your zone>

    ZONEID is your Zone ID, hex16 string

    RECORDNAME is your DNS record name, e.g. sub.example.com

    RECORDTTL is the TTL for the record in seconds, defaults to auto

  3. SSH to your router and place ddns-start under /jffs/scripts/

  4. Make sure it's executable chmod +x /jffs/scripts/ddns-start

  5. Log into the router web UI

    1. Go to Advanced Settings > WAN > DDNS
    2. Set Server to Custom
    3. Click the Apply button

References

About

CloudFlare DDNS update script for Asuswrt-Merlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%