ddclient:关键字“ip”的值无效 = '(动态 DNS)

ddclient:关键字“ip”的值无效 = '(动态 DNS)

关于此主题的先前帖子似乎已过时或无用。在 Pine64 上运行 17.04。

当使用 dynu.com 服务运行 ddclient 时,我收到一封包含以下错误的电子邮件(*** 我删除了隐私值):

WARNING:  file /var/cache/ddclient/ddclient.cache, line 8: Invalid Value for keyword 'ip' = ''
WARNING:  skipping update of ***.DYNU.NET from <nothing> to ***.
WARNING:   last updated <never> but last attempt on Tue Jun 20 15:26:07 2017 failed.
WARNING:   Wait at least 5 minutes between update attempts.

我的配置文件如下所示:

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
daemon=150
syslog=yes
mail=***
mail-failure=***
pid=/var/run/ddclient.pid
ssl=yes

use=web, web=checkip.dynu.com/, web-skip='IP Address'
server=api.dynu.com
protocol=dyndns2
server=dynu.com
login=***
password='***
***.DYNU.NET

我也尝试过不同的 IP 服务,例如 ipinfo.io/ip

此问题有任何新的补丁或更新吗?

答案1

因此,我将网络域名更改为:ipinfo.io/ip

并删除了的第二个实例server

我的最终配置文件如下所示:

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
daemon=150
syslog=yes
mail=***
mail-failure=***
pid=/var/run/ddclient.pid
ssl=yes

use=web, web=ipinfo.io/ip
server=api.dynu.com
protocol=dyndns2
#server=dynu.com
login=***
password='***'
***.DYNU.NET

我收到了一封精彩的电子邮件:

SUCCESS:  updating ***.DYNU.NET: good: IP address set to ***

答案2

根据日志,解决方案是使用 OSMC 安装“libio-socket-ssl-perl”包。

On Debian, the package libio-socket-ssl-perl must be installed.
On Red Hat, the package perl-IO-Socket-SSL must be installed.
On Alpine, the package perl-io-socket-ssl must be installed.

相关内容