dockerfiles/ddns-dnspod/README.md

1.2 KiB

ddns-dnspod

GitHub stilleshan/dockerfiles
Docker stilleshan/ddns-dnspod

docker image support for X86 and ARM

使用

docker 启动

docker run -d \
    --restart=always \
    --name=dnspod-ddns \
    -e "login_token=token_id,token" \
    -e "domain=domain.com" \
    -e "sub_domain=www" \
    -e "interval=10" \
    -e "ip_count=1" \
    stilleshan/ddns-dnspod
  • login_token: 填写dnspod.cn上申请的API TOKEN
  • domain: 填写根域名
  • sub_domain: 填写子域名

示例

使用二级域名来作为 ddns 域名,例如以下示例使用 ddns.ioiox.com ,需要使用的正式域名添加 CNAME 指向 ddns.ioiox.com 即可.

docker run -d \
    --restart=always \
    --name=dnspod-ddns \
    -e "login_token=123456,5MTlmZRFZrWkdFMVTU2VFE9PX" \
    -e "domain=ioiox.com" \
    -e "sub_domain=ddns" \
    -e "interval=10" \
    -e "ip_count=1" \
    stilleshan/ddns-dnspod

参考

群晖NAS网络服务 - docker 部署配置腾讯云 DNSPod DDNS 动态域名解析
更多请参考原始仓库 strahe/dnspod-ddns