Skip to content

Instantly share code, notes, and snippets.

@alal
alal / README.md
Last active May 22, 2017 — forked from chuangbo/README.md
Python dynamic DNSPod DNS Script
View README.md

先在在dnspod建一条目标记录, 如 ddns. 替换上你的参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获得domain_id可以用curl (找到你目标域名) curl -k https://dnsapi.cn/Domain.List -d "login_email=xxx&login_password=xxx"

获得record_id类似 (找到你目标子域名) curl -k https://dnsapi.cn/Record.List -d "login_email=xxx&login_password=xxx&domain_id=xxx"

You can’t perform that action at this time.