#wget https://ghproxy.com/https://github.com/jeessy2/ddns-go/releases/download/v5.6.1/ddns-go_5.6.1_linux_x86_64.tar.gz
wget https://vip.123pan.cn/1815238395/download/ddns-go/ddns-go_5.6.1_linux_x86_64.tar.gz

tar xzvf ddns-go_5.6.1_linux_x86_64.tar.gz
mv ddns-go /bin/
ddns-go -s install

配置文件案例

dnsconf:
    - ipv4:
        enable: true
        gettype: url
        url: https://myip4.ipip.net,https://ddns.oray.com/checkip,https://ip.3322.net,https://4.ipw.cn
        netinterface: ""
        cmd: ""
        domains:
            - raspberrypi.xxx
      ipv6:
        enable: true
        gettype: netInterface
        url: https://speed.neu6.edu.cn/getIP.php,https://v6.ident.me,https://6.ipw.cn
        netinterface: eth0
        cmd: ""
        ipv6reg: ""
        domains:
            - raspberrypi.xxx
      dns:
        name: dnspod
        id: "438041"
        secret: 111
      ttl: ""
user:
    username: admin
    password: xxx
webhook:
    webhookurl: ""
    webhookrequestbody: ""
    webhookheaders: ""
notallowwanaccess: false
最后修改:2024 年 05 月 11 日
如果觉得我的文章对你有用,请随意赞赏