Skip to content

JunyuMu/asuswrt-merlin-ddns-dnspod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

asuswrt-merlin-ddns-dnspod

DNSPod DDNS update script for Asuswrt-Merlin

Read this in other languages: English, 简体中文.

Usage

  1. Download the ddns-start script to /jffs/scripts/.

    wget https://raw.githubusercontent.com/huxuan/asuswrt-merlin-ddns-dnspod/master/ddns-start -P /jffs/scripts/
  2. Modify the parameters in the script accordingly. More detailed information please refer to the Parameter Specification.

  3. Last but not least, ensure the script is executable.

    chmod +x /jffs/scripts/ddns-start

Parameter Specification

  1. DDNS_DOMAIN

    The domain name without subdomain, e.g., example.com.

  2. DDNS_SUB_DOMAIN

    Only the subdomain part, e.g., www.

  3. DNSPOD_LOGIN_TOKEN

    The token for authorization to modify the DNS record on DNSPod. Note that it is a combination of ID and Token, so it looks like 13490,6b5976c68aba5b14a0558b77c17c3932.

  4. DNSPOD_RECORD_ID

    The ID of the DNS record. Just fill the following command with the proceeding parameters and the record ids (only one usually) will return.

    This is a one-time effort so I pick it out intentionally so as not to run it every time within ddns-start script.

    curl -x POST https://dnsapi.cn/Record.List \
    -d login_token=<YOUR_DDNS_LOGIN_TOKEN> \
    -d domain=<YOUR_DDNS_DOMAIN> \
    -d sub_domain=<YOUR_DDNS_SUB_DOMAIN> \
    -d format=json
  5. DNSPOD_RECORD_LINE_ID

    The allowed line's ids for the domain's DNS record. This is mostly used for dynamic DNS policy for different ISPs, for general usage, just use the default value 0.

About

DNSPod DDNS update script for Asuswrt-Merlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%