DNSPod DDNS update script for Asuswrt-Merlin
Read this in other languages: English, 简体中文.
-
Download the
ddns-start
script to/jffs/scripts/
.wget https://raw.githubusercontent.com/huxuan/asuswrt-merlin-ddns-dnspod/master/ddns-start -P /jffs/scripts/
-
Modify the parameters in the script accordingly. More detailed information please refer to the Parameter Specification.
-
Last but not least, ensure the script is executable.
chmod +x /jffs/scripts/ddns-start
-
DDNS_DOMAIN
The domain name without subdomain, e.g.,
example.com
. -
DDNS_SUB_DOMAIN
Only the subdomain part, e.g.,
www
. -
The token for authorization to modify the DNS record on DNSPod. Note that it is a combination of
ID
andToken
, so it looks like13490,6b5976c68aba5b14a0558b77c17c3932
. -
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
-
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
.