Sign inSign up

duxlong/aliyun-cli-ddns

By duxlong

•Updated over 3 years ago

Image
0

526

duxlong/aliyun-cli-ddns repository overview

⁠aliyun-cli-ddns

⁠why build this

接连几天,我访问工商公示平台网站,总是提示我网络不安全,不允许我访问,重新拨号换 IP 后才能正常使用;

我没有能力找到具体原因,所以排查所有 NAS 中的 app;

我一直使用别人的 aliyun-ddns app,但是觉得写的好复杂,就查看了官方文档,实现了很简单的功能;

运行原理就是 crontab 每 5 分钟运行一次 ddns.sh 脚本

⁠reference

阿里云 CLI⁠ || 云解析 DNS API⁠

⁠github

https://github.com/duxlong/aliyun-cli-ddns⁠

⁠docker hub

https://hub.docker.com/r/duxlong/aliyun-cli-ddns⁠

⁠usage

docker pull

docker pull duxlong/aliyun-cli-ddns:latest

docker run

docker run -d \
    -e REGION="cn-hangzhou" \
    -e AKI="[your aliyun access-key-id]" \
    -e AKS="[your aliyun access-key-secret]" \
    -e DOMAIN="[your ddns domain]" \
    --name="aliyun-cli-ddns" \
    duxlong/aliyun-cli-ddns

Tag summary

Content type

Image

Digest

sha256:62d938670…

Size

19.3 MB

Last updated

over 3 years ago

docker pull duxlong/aliyun-cli-ddns