发个ddns-go脚本

xjetry 2026-06-10 00:57 1

家宽机器要装ddns,贴个自用bash分


url=$(wget -qO- https://api.github.com/repos/jeessy2/ddns-go/releases/latest | grep -o 'https://[^"]*_linux_x86_64\.tar\.gz' | head -n1)
wget -qO- "$url" | tar -xz -C /usr/local/bin ddns-go
/usr/local/bin/ddns-go -s install && systemctl start ddns-go
最新回复 (8)
  • yhj945 06-10 00:59
    1

    @xjetry #0 ^-^ 可以,一小时达成今日发帖成就

  • 朝阳群众 06-10 01:01
    2

    楼上好眼力

  • xjetry 楼主 06-10 01:01
    3

    @yhj945 #1 来个腿谢谢

  • jlthzy 06-10 01:03
    4

    bd

  • ponyo 06-10 01:04
    5

    谢谢

  • Luze 06-10 01:10
    6

    curl https://raw.githubusercontent.com/aipeach/cloudflare-api-v4-ddns/master/cf-v4-ddns.sh > /root/cf-v4-ddns.sh && chmod +x /root/cf-v4-ddns.sh

    vim cf-v4-ddns.sh


    incorrect api-key results in E_UNAUTH error


    填写 Global API Key


    CFKEY=


    Username, eg: [email protected]


    填写 CloudFlare 登陆邮箱


    CFUSER=


    Zone name, eg: example.com


    填写需要用来 DDNS 的一级域名


    CFZONE_NAME=


    Hostname to update, eg: homeserver.example.com


    填写 DDNS 的二级域名(只需填写前缀)


    CFRECORD_NAME=


    ./cf-v4-ddns.sh


    crontab -e

    */2 * * * * /root/cf-v4-ddns.sh >/dev/null 2>&1


    如果需要日志,替换上一行代码


    */2 * * * * /root/cf-v4-ddns.sh >> /var/log/cf-ddns.log 2>&1

    这个也好用出处link text

  • hy 06-10 01:12
    7

    这玩意好用吗

  • xiaowork 06-10 01:36
    8

    绑定

* 帖子来源NodeSeek
返回