wherelse / cloudflare-ddns-script Goto Github PK
View Code? Open in Web Editor NEWCloudFlare ddns / 树莓派IPV6 DDNS解决方案
CloudFlare ddns / 树莓派IPV6 DDNS解决方案
在一台openwrt路由上运行失败。路由已经获取ipv6,并且手动在cloudflare上登录了一条AAAA记录,域名可以正常访问。运行bash ..../cloudflare-ddns.sh后的提示为:
API UPDATE FAILED. DUMPING RESULTS:
{"success":false,"errors":[{"code":7003,"message":"Could not route to /zones/dns_records, perhaps your object identifier is invalid?"},{"code":7000,"message":"No route for that URI"}],"messages":[],"result":null}
按照教程来, 确定没有其它错误,但是还是失败, 且均已执行 rm cloudflare.ids,
更换了zone_name和 record_name , 错误提示分别为:
①
zone_name="12345.eu.org" #你的域名,your root domain address
record_name="wwww.12345.eu.org" #完整域名,your full domain address
record_type="AAAA"
提示错误:
API UPDATE FAILED. DUMPING RESULTS:
{
"code": 1001,
"error": "method_not_allowed"
}
②
zone_name="eu.org" #你的域名,your root domain address
record_name="wwww.12345.eu.org" #完整域名,your full domain address
record_type="AAAA"
提示错误:
API UPDATE FAILED. DUMPING RESULTS:
③
zone_name="eu.org" #你的域名,your root domain address
record_name="12345.eu.org" #完整域名,your full domain address
record_type="AAAA"
提示错误:
API UPDATE FAILED. DUMPING RESULTS:
{"result":null,"success":false,"errors":[{"code":7003,"message":"Could not route to /client/v4/zones/dns_records/, perhaps your object identifier is invalid?"}],"messages":[]}
请问脚本是否支持IPv4地址的动态解析
树莓派运行 bash /home/pi/cloudflare-ddns.sh 出错:
API UPDATE FAILED. DUMPING RESULTS:
{"success":false,"errors":[{"code":6007,"message":"Malformed JSON in request body"}],"messages":[],"result":null}
log_file="cloudflare.log"
是否可改为
log_file="cloudflare_$(date +%Y%m).log"
按月份记录日志并且增加删除3个月以前的日志
rm -f cloudflare_$(date -d '3 months ago' +%Y%m).log
这样可以防止忘记删除日志导致空间被占用过多,相信有一部分人放在路由器上同步ddns的。
"code": 1001,
"error": "method_not_allowed"
freshtomato,ddwrt和merlin这类sh的,只需要将开头声名的bash改成sh即可,无需修改其他
运行ifconfig查看自己路由设备的网口并找一个合适的
如题,网络环境是家宽,想解析两个(或多个)二级域名到同一个家宽网络底下对应不同端口,然后用nginx反代,想问问如何实现.
ServerPush分支最后的结果判断 [] 要改为[[]]
ip地址能优选?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.